Is this secure?

Paul Rubin at nospam.invalid
Wed Feb 24 20:09:43 CET 2010

Robert Kern <robert.kern at> 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