[GRASS-git] [OSGeo/grass] c26c04: v.perturb: Require either explicit seed or generat...
Vaclav Petras
noreply at github.com
Thu Oct 7 06:36:08 PDT 2021
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: c26c04f4511c7fc09baadb50c1d0df88de35398b
https://github.com/OSGeo/grass/commit/c26c04f4511c7fc09baadb50c1d0df88de35398b
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2021-10-07 (Thu, 07 Oct 2021)
Changed paths:
M vector/v.perturb/main.c
Log Message:
-----------
v.perturb: Require either explicit seed or generated seed (#1661)
This moves the modules to the standard followed by r.mapcalc where we require
user to either provide seed or to ask for a seed with -s flag
(-s results in a different seed and thus different results every time).
The original code used fixed seed by default and required explicit
change to get a different 'random' result.
The GRASS standard G_srand48_auto() function is used which returns the seed
which is in turn used in the custom random number generator code in the module.
More information about the grass-commit
mailing list