Python Random Number Generator for OTP

Andy Isaacson adi at hexapodia.org
Mon Jul 22 14:46:15 PDT 2013


On Mon, Jul 22, 2013 at 04:50:55PM -0400, Tom wrote:
> Does anyone on the list have some Python source code for an
> OTP-focused random number generator they'd be willing to share? I'm
> interested in seeing how different people would approach it?

Why not simply use /dev/urandom (after ensuring you have enough entropy,
etc, etc).  If you don't have systemic entropy collection, Python is not
going to be able to help.

Of course any entropy pool measurement is merely computationally
feasible randomness; you'll need to measure a physically
nondeterministic process directly if you want true information theoretic
entropy.  Something like an entropykey should do the trick, if you trust
their design and that they haven't included backdoors.

-andy



More information about the cypherpunks mailing list