Message267950
If the seed is to be based on time.time(), why not use something based on hash(time.time()) to avoid the 1/256 s resolution?
If there is a practical way to get pseudo-random data from the platform, it would be better to use that, rather than cooking up our own entropy from time.time(), PID, etc. But I guess that depends on the future of os.urandom() and friends.
In the meantime, limiting to os.urandom(256) seems reasonable, though I’m not a random number or cryptography expert. |
|
Date |
User |
Action |
Args |
2016-06-09 02:49:03 | martin.panter | set | recipients:
+ martin.panter, vstinner, christian.heimes, dstufft |
2016-06-09 02:49:03 | martin.panter | set | messageid: <1465440543.29.0.581467319212.issue27272@psf.upfronthosting.co.za> |
2016-06-09 02:49:03 | martin.panter | link | issue27272 messages |
2016-06-09 02:49:02 | martin.panter | create | |
|