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 pitrou
Recipients loewis, mark.dickinson, pitrou, rhettinger, terrence
Date 2010-02-09.11:25:23
SpamBayes Score 2.4797025e-06
Marked as misclassified No
Message-id <1265714725.48.0.631646722813.issue7889@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, it's simple really. When seeding from something else than an integer, seed() takes the hash of the object (instead of considering all its bytes, which might be considered a weakness since you lose entropy -- also, Python hash() is not supposed to be cryptographically strong). The hash is different in 32-bit and 64-bit mode (although the lower 32 bits are the same, at least for a bytes object), and since all the bits are taken into account the initial state is different.

So the easy workaround for the OP is to seed with an integer rather a bytes object.
History
Date User Action Args
2010-02-09 11:25:25pitrousetrecipients: + pitrou, loewis, rhettinger, mark.dickinson, terrence
2010-02-09 11:25:25pitrousetmessageid: <1265714725.48.0.631646722813.issue7889@psf.upfronthosting.co.za>
2010-02-09 11:25:23pitroulinkissue7889 messages
2010-02-09 11:25:23pitroucreate