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 mark.dickinson
Recipients loewis, mark.dickinson, michael.foord, pitrou, rhettinger, terrence
Date 2010-02-09.12:02:31
SpamBayes Score 2.759119e-05
Marked as misclassified No
Message-id <1265716955.76.0.999991700093.issue7889@psf.upfronthosting.co.za>
In-reply-to
Content
[Antoine]
> >>> random.seed(int.from_bytes(b'foo', 'little'))

+1 for either documenting this useful trick, or modifying init_by_array to do this automatically for buffer-like objects.

Disallowing other types of input for the seed sounds dangerous, though.
History
Date User Action Args
2010-02-09 12:02:35mark.dickinsonsetrecipients: + mark.dickinson, loewis, rhettinger, pitrou, michael.foord, terrence
2010-02-09 12:02:35mark.dickinsonsetmessageid: <1265716955.76.0.999991700093.issue7889@psf.upfronthosting.co.za>
2010-02-09 12:02:32mark.dickinsonlinkissue7889 messages
2010-02-09 12:02:31mark.dickinsoncreate