Is this secure?

Robert Kern robert.kern at
Wed Feb 24 21:20:37 CET 2010

On 2010-02-24 14:02 PM, mk wrote:

> It would appear that SystemRandom().choice is indeed best (in terms of
> how much the counts stray from mean in std devs), but only after seeding
> it with os.urandom.

Calling random.seed() does not affect SystemRandom() whatsoever. You are getting 
perfectly acceptable distributions for all three variants.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Python-list mailing list