[GRASS-dev] Test suite for GRASS - proposal, discussion welcome

Glynn Clements glynn at gclements.plus.com
Fri Jun 10 23:03:47 EDT 2011

Moritz Lennert wrote:

> So which of the two option (a seed= parameter / disabling seeding by PID
> vs GRASS_RND_SEED) is preferrable ? I would think that we should try to
> be consistent across modules, but r.mapcalc uses GRASS_RND_SEED and
> v.perturb uses 'seed=' (but also doesn't use rand()). Maybe the occasion 
> to unify all this ?

r.mapcalc uses an environment variable because the pre-7.0 version
doesn't use G_parser(); all arguments are concatenated and the result
is treated as an expression.

In 7.0, adding seed= to r.mapcalc would be straightfoward; in 6.x,
it's not really an option.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list