[docs] [issue32554] random.seed(tuple) uses the randomized hash function and so is not reproductible

Raymond Hettinger report at bugs.python.org
Sun Jun 24 02:59:04 EDT 2018


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> Maybe deprecate using a hash?

Any deprecation will likely break some existing code, but it would be nice to restrict inputs types to int, float, bytes, bytearray, or str.  Then we could remove all reference to hashing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32554>
_______________________________________


More information about the docs mailing list