Is this secure?

Paul Rubin no.email at nospam.invalid
Wed Feb 24 14:09:43 EST 2010


Robert Kern <robert.kern at gmail.com> writes:
> I will repeat my advice to just use random.SystemRandom.choice()
> instead of trying to interpret the bytes from /dev/urandom directly.

SystemRandom is something pretty new so I wasn't aware of it.  But
yeah, if I were thinking more clearly I would have suggested os.urandom
instead of opening /dev/urandom.



More information about the Python-list mailing list