Message99111
| 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. |
|