Testing with swdiag
This section demonstrates how to run SwiftRNG general diagnostics and test the quality of random bytes generated by the device.
It requires sudo
permissions when used with Linux or freeBSD based systems.
Make sure the swdiag
utility is successfully built with make
. Plug the SwiftRNG device in one of the USB ports available.
For swdiag
, run the following command:
swdiag
swdiag
will discover all the SwiftRNG devices connected to the system, run general diagnostics, and execute tests such as APT, RCT and Chi-Squire. When used with SwiftRNG device version 1.2 and up, it will also download, display and inspect frequency tables associated with the random noise sources.
Testing a SwiftRNG cluster with swdiag-cl
This section demonstrates how to run SwiftRNG general diagnostics and test the quality of random bytes generated by a cluster of multiple devices.
It requires sudo
permissions when used with Linux or freeBSD based systems.
Make sure the swdiag-cl
utility is successfully built with make
. Plug two or more SwiftRNG devices in USB ports available.
For swdiag-cl
, run the following command:
swdiag-cl
swdiag-cl
will form a cluster of two or more SwiftRNG devices connected to the system, run general diagnostics, and execute tests such as APT, RCT and Chi-Squire.