This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author abukaj
Recipients abukaj, docs@python
Date 2016-12-20.12:46:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1482237974.75.0.612413216492.issue29023@psf.upfronthosting.co.za>
In-reply-to
Content
In https://docs.python.org/2/library/random.html#random.seed I can find that "If a hashable object is given, deterministic results are only assured when PYTHONHASHSEED is disabled."

Both int and long are hashable. However, tests on the random module as well as C source code of random_seed (as indicated in http://stackoverflow.com/a/41228062/4879688) suggest that behaviour of the module is deterministic when seeded with an integer.
History
Date User Action Args
2016-12-20 12:46:14abukajsetrecipients: + abukaj, docs@python
2016-12-20 12:46:14abukajsetmessageid: <1482237974.75.0.612413216492.issue29023@psf.upfronthosting.co.za>
2016-12-20 12:46:14abukajlinkissue29023 messages
2016-12-20 12:46:14abukajcreate