[onerng talk] OneRNG and Python
Jim Cheetham
jim at gonzul.net
Thu Dec 7 08:35:47 GMT 2017
Under Linux, the correct way to use the device is to have it as an input to
/dev/urandom, using rngd to feed entropy in from OneRNG to your kernel.
If you want to read data directly from OneRNG, you can; it is just a serial
device, and you can just open it, write the config commands, and then read
the number of bytes of data that you want. You'd be advised to use OneRNG
data to seed a PRNG though :-)
Sensibly, the Python docs say "use your OS, not us" ...
https://docs.python.org/2/library/random.html
-jim
On Thu, Dec 7, 2017 at 9:06 PM, 7xxprometheusxx7 <7xxprometheusxx7 at gmail.com
> wrote:
> OneRNG <http://lists.onerng.info>
>
> [image: Photo of 7xxprometheusxx7]
> <http://lists.onerng.info/p/2SqG0RmVIws4V6yq4geiQp>
> *OneRNG and Python*
> <http://lists.onerng.info/r/topic/3ICEceUAVeIvzlnm0C1TTI>
> by *7xxprometheusxx7* <http://lists.onerng.info/p/2SqG0RmVIws4V6yq4geiQp>
> in *OneRNG Talk* <http://lists.onerng.info/groups/onerng-talk>
> ------------------------------
> I purchased this device last year and it has at in my drawer since then.
> I've been busy studying software development. I just dug the OneRNG out,
> installed the software, and verified it is working.
>
> Does anyone know where I can find some documentation describing how I may
> use this in a Python script?
>
> I'd like to use it to generate a random series of numbers and create a
> one-time pad type encryption program.
>
> Thanks in advance!!
> ------------------------------
> ⮪ Reply
> <onerng-talk at lists.onerng.info?subject=Re%3A%20OneRNG%20and%20Python> 🖂
> New topic <onerng-talk at lists.onerng.info> View topic…
> <http://lists.onerng.info/r/topic/3ICEceUAVeIvzlnm0C1TTI>
> Unsubscribe
> <onerng-talk at lists.onerng.info?subject=Unsubscribe&body=Hello%2C%0A%0APlease%20remove%20me%20from%20OneRNG%20Talk%0A%3Chttp%3A//lists.onerng.info/groups/onerng-talk%3E%0A%0AThank%20you.>
> • Switch to a daily digest
> <onerng-talk at lists.onerng.info?subject=Digest%20on&body=Hello%2C%0A%0APlease%20switch%20me%20from%20receiving%20one%20email%20per%20post%20to%20the%20daily%0Adigest%2C%20which%20summarises%20the%20all%20the%20posts%20made%20each%20day%20in%0AOneRNG%20Talk%0A%3Chttp%3A//lists.onerng.info/groups/onerng-talk%3E%0A%0AThank%20you.>
>
> - Privacy <http://lists.onerng.info/policies/privacy/>
> - Acceptable Use <http://lists.onerng.info/policies/aup/>
> - Terms of Service <http://lists.onerng.info/policies/tos/>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/discuss/attachments/20171207/1c276433/attachment.html>
More information about the Discuss
mailing list