Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3644 by [email protected]: use of random should not modify the
global random state
http://code.google.com/p/sympy/issues/detail?id=3644
There is discussion of this at https://github.com/sympy/sympy/pull/1785
Basically, all random functions should be derived from a
random.Random(SYMPY_RANDOM_SEED). So, for example, `from random import
randint` should be replaced with
```
from random import Random
rng = Random(SYMPY_RANDOM_SEED)
randint = rng.randint
```
But perhaps it would be better to leave the `rng` in place in the code so
it's clear that the call to randint is using rng rather than the global
random module. Similarily, calls to `random.random()` would be replace
with `rng.random()`
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.