Message170423
It would be great if one sentence was added to os.urandom description:
"For easy to use interface to system randomness please see random.SystemRandom class".
The reason for this change is that many references quote only os.urandom as a cryptographically strong randomeness source in python, and for some people it might be not obvious that there already exists such easy to use api to use cryptographically strong randomness (that is random.SystemRandom class). It would be good to point such people to right class.
Myself for example spent last hour trying to create makeshift Random subclass that uses os.urandom as it's randomness source. |
|
Date |
User |
Action |
Args |
2012-09-12 22:09:02 | Jacek.Bzdak | set | recipients:
+ Jacek.Bzdak, docs@python |
2012-09-12 22:09:02 | Jacek.Bzdak | set | messageid: <1347487742.57.0.57747338883.issue15936@psf.upfronthosting.co.za> |
2012-09-12 22:09:01 | Jacek.Bzdak | link | issue15936 messages |
2012-09-12 22:09:00 | Jacek.Bzdak | create | |
|