OneRNG REST Server

Jim Cheetham jim at gonzul.net
Mon Jan 25 05:30:02 GMT 2021


That looks like an effective hack, glad it's working for you.

But if you've decided on python for the REST server, you could also use python to talk directly to your rng.

os.random() and random.SystemRandom() might turn out to be a better approach for you, leading to simpler code ... instead of using subprocess(), which in general is something you should avoid unless you absolutely have to use it :-)

https://docs.python.org/3/library/os.html#os.urandom
https://docs.python.org/3/library/random.html#random.SystemRandom

-jim


More information about the Discuss mailing list