[onerng talk] Trying to access onerng from python on mac

tmp543901 at buckeye-express.com tmp543901 at buckeye-express.com
Tue Feb 18 21:32:41 GMT 2020


On 2020-02-18 8:33 am, Anthony Palomba wrote:

> Hey folks,
> 
> I have plugged in my onerng in my mac and it seems to be working. How
> can I read data from it using python?
> 

According to the documentation, OneRNG works with internal mac drivers
but lacks a suitable program to get the entropy to the kernel.

http://moonbaseotago.com/onerng/#mac

But it seems you are only asking how to read directly from OneRNG.
Before using any python I suggest you first establishe that you can
communicate with your OneRNG using a more basic method.

I have no idea how the mac drivers work so I don't know if following
the generic linux operation commands will work from a terminal
window but you can try - http://moonbaseotago.com/onerng/#Generic -
(realize that your device probably won't show as /dev/ttyACMx and that
some of that documentation is different or doesn't apply at all for mac)

If that doesn't work then I'd try using a basic program like cu or
minicom as Paul recommended here to someone using freebsd -

http://lists.onerng.info/groups/onerng-talk/messages/topic/KFurGvvNZPq5dh7XQyX14/

If that works then maybe use pySerial, though a shell script is probably
easier.  Not sure for mac, but I was able to use pySerial in the past to
communicate with OneRNG on linux.  Sorry I can't offer more help but I'm
not a mac guy.


More information about the Discuss mailing list