[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-dev
Subject:    Re: [GRASS-dev] [GRASS GIS] #2272: Improve consistency in random generator usage
From:       "GRASS GIS" <trac () osgeo ! org>
Date:       2014-11-28 3:41:44
Message-ID: 050.5baad3eaf36f338ab0a131a5234c6214 () osgeo ! org
[Download RAW message or body]

#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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic