#2272: Improve consistency in random generator usage -------------------------+-------------------------------------------------- Reporter: neteler | Owner: grass-dev@… Type: defect | Status: new Priority: major | Milestone: 7.0.0 Component: Default | Version: svn-releasebranch70 Keywords: random | Platform: Unspecified Cpu: Unspecified | -------------------------+--------------------------------------------------
Comment(by annakrat): Replying to [comment:7 glynn]: > Replying to [comment:6 neteler]: > > By chance I found > > > > raster/simwe/simlib/random.c > > > > /* uniform random number generator (combined type) */ > > > > Should that be replaced as well (how)? > > ulec() can be replaced by G_drand48(). > > seedg() isn't used. > > seeds() is always called with fixed values (12345 and 67891). Either call G_srand48() with a fixed value (if repeatability is important), or call G_srand48_auto() for a non-deterministic seed (if it isn't), or add a seed= option to the modules. Done in r63216 and backported. The seed is fixed value. -- Ticket URL: <http://trac.osgeo.org/grass/ticket/2272#comment:8> GRASS GIS <http://grass.osgeo.org> _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev