[Python-ideas] Should our default random number generator be secure?
Jeremy Sanders
jeremy at jeremysanders.net
Tue Sep 15 16:02:43 CEST 2015
M.-A. Lemburg wrote:
> If you can come up with a crypto RNG that allows repeating the
> results, I think you'd have us all convinced, otherwise it
> doesn't really make sense to compare apples and oranges,
> and insisting that orange juice is better for you than
> apple juice ;-)
According to
http://www.pcg-random.org/other-rngs.html
This chacha20 implementation is seedable and should be reproducible:
https://gist.github.com/orlp/32f5d1b631ab092608b1
...though I am concerned about the k-dimensional equidistribution as a
scientist, and also that if the random number generator is changed without
the interface changing, then it may screw up tests and existing codes which
rely on a particular sequence of random numbers.
J
More information about the Python-ideas
mailing list