Testing with swdiag
This section describes how to run general SwiftRNG diagnostics and test the quality of random bytes generated by the device.
The utility requires sudo permissions on Linux or FreeBSD.
Make sure the swdiag utility has been built with make, and plug the SwiftRNG device into an available USB port.
Run the following command:
swdiag
swdiag discovers all the SwiftRNG devices connected to the system, runs general diagnostics, and executes tests such as APT, RCT, and chi-square. When used with SwiftRNG device version 1.2 or later, it also downloads, displays, and inspects the frequency tables of the random noise sources.
Testing a SwiftRNG cluster with swdiag-cl
This section describes how to run general diagnostics and test the quality of random bytes generated by a cluster of multiple devices.
The utility requires sudo permissions on Linux or FreeBSD.
Make sure the swdiag-cl utility has been built with make, and plug two or more SwiftRNG devices into available USB ports.
Run the following command:
swdiag-cl
swdiag-cl forms a cluster of two or more SwiftRNG devices connected to the system, runs general diagnostics, and executes tests such as APT, RCT, and chi-square.