Home Forums TrueRNG Hardware random number generator Mac OSX: seeding PRNG with TrueRNG

Tagged: , ,

This topic contains 0 replies, has 1 voice, and was last updated by  Anonymous 8 years, 11 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1290

    Anonymous

    It turned out to be surprisingly simple. Mac OSX /dev/random allows writes and is the recommended method by Apple to seed entropy to PRNG. Therefore, simply creating hourly cron job like this will work as simplistic version for rng-tools on OSX :

    send_entropy.sh
    #!/bin/zsh
    # change Usbmodem to your #
    [[ -r /dev/cu.usbmodem14511 ]] && dd if=/dev/cu.usbmodem14511 ibs=1 count=512k obs=1024 >& /dev/null | pv -pterb -s 512k | dd of=/dev/random >& /dev/null

    crontab -e
    @hourly <path>/send_entropy.sh

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.