The swrawrandom utility can be used for retrieving raw (unprocessed) bytes from each of two noise sources of the SwiftRNG device. The feature is used by SwiftRNG Software Kit for inspecting and validating the noice sources. It can also be used for estimating the quality of a source of entropy as part of the Entropy Assessment software developed by NIST (NIST Special Publication 800-90B - Recommendation for the Entropy Sources Used for Random Bit Generation).

Instructions for bulding swrawrandom for Linux and freeBSD can be found at this location. It requires sudo permissions when used with Linux or freeBSD based systems.

swrawrandom can be used with the following syntax:

swrawrandom <number of blocks> <device> <noise source> <file>

Where:

One block equals to 16000 bytes
<device> - SwiftRNG device number, 0 - for first device
<noise source> - valid values: 0 (first) or 1 (second)
<file> - file for storing retrieved random bytes

To retrieve 160,000 of raw bytes from the noise source 1 of the first SwiftRNG device to ns1.bin file:

swrawrandom 10 0 0 ns1.bin

To retrieve 160,000 of raw bytes from the noise source 2 of the first SwiftRNG device to ns2.bin file:

swrawrandom 10 0 1 ns2.bin