Age | Commit message (Collapse) | Author |
|
The 'rand' module was introduced in OTP 18 and its use is
discouraged. Deprecate it to further discourage its use.
|
|
|
|
|
|
* sverker/random-improved-algo:
Improve algorithm in module random.
Fix a bug in the implementation of the pseudo-random number generator
OTP-8713
|
|
|
|
Avoid seed values that are even divisors of the primes
and by that prevent getting seeds that are stuck on zero.
Example: random:seed(0,0,0) would produce a series of only zeros.
|
|
This commit fixes an error in the mathematical formula of the Wichmann-Hill
pseudo-random number generator. In particular, the implementation used until
now produces sequences which differ from the expected ones by an extra starting
number, which is instead the very last value of the sequence.
This bug amplified the effect of extremely correlated initial numbers when
seeding different generators with very similar seed values.
|
|
|