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 rhettinger
Recipients glyph, rhettinger
Date 2016-08-08.01:37:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1470620271.54.0.0785871002792.issue27706@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the bug report.  This is a case of something that used to work fine but was affected by an incidental change elsewhere.   

To support the use case for deterministic sequences of values starting from a known point, the docs promise, "If a new seeding method is added, then a backward compatible seeder will be offered. The generator’s random() method will continue to produce the same sequence when the compatible seeder is given the same seed." (See https://docs.python.org/3/library/random.html#notes-on-reproducibility )

The resolution is to have the random module (line 327 in Modules/_randommodule.c) use a new _PyObject_Hash() function that deterministically matches what the old PyObject_Hash() function used to do.

Marking this as "needs patch" and saving it for Nofar Schnider to work on (she's an aspiring core dev).
History
Date User Action Args
2016-08-08 01:37:51rhettingersetrecipients: + rhettinger, glyph
2016-08-08 01:37:51rhettingersetmessageid: <1470620271.54.0.0785871002792.issue27706@psf.upfronthosting.co.za>
2016-08-08 01:37:51rhettingerlinkissue27706 messages
2016-08-08 01:37:50rhettingercreate