TrueRNG Install Guide
The TrueRNG USB Hardware Random Number Generator can be used for a variety of application where unpredictable random numbers are required. Game developers may want to use it to enhance game play. For example they could seed their Game Maps, Artificial Intelligence (AI) Algorithms, or randomize the level of difficulty of opponents. Data Scientist or Data Analytics might use TrueRNG for commercial process modeling simulations or to simply characterize the randomness of the random numbers themselves. Finally, Network Security (NetSec) and IT professionals use TrueRNG in Linux servers all over the world. In this case TrueRNG is used to keep the kernels entropy pool replenished to ensure fast and secure cryptography operations such as those that would be used for key generation, SSH, SSL, GPG and more.
The point I’m getting at here is that TrueRNG can be used on multiple platforms for multiple purposes and applications. However, the hardware is very simple to understand. The communication interface is a simple USB serial port device. You can open up the port using just about any decent terminal application, turn on DTR (Data Transmit Read), and read out bytes.
- Windows Installation
- Ubuntu Installation
- Ubuntu rng-tools Installation
- Ubuntu Dieharder Installation
- Ubuntu ent Installation
- Download the Windows Driver (TrueRNG V3 ZIP) or Windows Driver (TrueRNGpro Zip)
- Unzip the driver files into a directory
- Right-click the TrueRNG.inf file and select Install
- Plug in TrueRNG and it should show up as a Standard COM port
Ubuntu Linux Installation
- Download the udev rules (zip)
- Extract and place udev rules in udev/rules.d folder (this is /etc/udev/rules.d/ under ubuntu)
tar -zxvf TrueRNG-Linux-udev-rules.tar.gz -C /etc/udev/rules.d/
- Plug in TrueRNG USB Hardware RNG
- Verify /dev/TrueRNG device appears by typing
ls -l /dev/TrueRNG
Installing rng-tools on Ubuntu (optional)
- Install rng-tools using apt-get (ubuntu) or yum (redhat)
sudo apt-get install rng-tools
- Modify /etc/default/rng-tools (ubuntu) or /etc/whatever (RedHat) and make sure the HWRNGDEVICE points to /dev/hwrng (eg. HRNGDEVICE=/dev/TrueRNG)
# Configuration for the rng-tools initscript # $Id: rng-tools.default,v 126.96.36.199 2008-06-10 19:51:37 hmh Exp $ # This is a POSIX shell fragment # Set to the input source for random data, leave undefined # for the initscript to attempt auto-detection. Set to /dev/null # for the viapadlock and tpm drivers. #HRNGDEVICE=/dev/hwrng #HRNGDEVICE=/dev/null HRNGDEVICE=/dev/TrueRNG # Additional options to send to rngd. See the rngd(8) manpage for # more information. Do not specify -r/--rng-device here, use # HRNGDEVICE for that instead. #RNGDOPTIONS="--hrng=intelfwh --fill-watermark=90% --feed-interval=1" #RNGDOPTIONS="--hrng=viakernel --fill-watermark=90% --feed-interval=1" #RNGDOPTIONS="--hrng=viapadlock --fill-watermark=90% --feed-interval=1" #RNGDOPTIONS="--hrng=tpm --fill-watermark=90% --feed-interval=1"
- Make sure rng-tools will autostart
sudo update-rc.d rng-tools enable
- Verify rng-tools service is running using top and cat your syslog for rng-tools debug info.
Installing Dieharder on Ubuntu (optional)
- Install Dieharder using apt-get (ubuntu) or yum (redhat)
sudo apt-get install dieharder
Installing ent on Ubuntu (optional)
- Install ent using apt-get (ubuntu) or yum (redhat)
sudo apt-get install ent