Message218238
The default seeding for the random module currently used 32 bytes from urandom() to create the initial state of the random number generator. This is far less than the number of possible states 2**19937-1.
Changing the default seed to a larger number will cover the state space. This gives better security and better randomness by not using just a subset of the possible states.
The downside is slightly slower default initialization. |
|
Date |
User |
Action |
Args |
2014-05-10 20:56:26 | rhettinger | set | recipients:
+ rhettinger |
2014-05-10 20:56:25 | rhettinger | set | messageid: <1399755385.94.0.749648968305.issue21470@psf.upfronthosting.co.za> |
2014-05-10 20:56:25 | rhettinger | link | issue21470 messages |
2014-05-10 20:56:25 | rhettinger | create | |
|