Testing with swdiag on Linux and macOS

This section demonstrates how to run SwiftRNG general diagnostics and test the quality of random bytes generated by the device.

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:

sudo 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 on Linux and macOS

This section demonstrates how to run SwiftRNG general diagnostics and test the quality of random bytes generated by a cluster of multiple devices.

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:

sudo 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.

Testing with swdiag on Windows

This section demonstrates how to run SwiftRNG general diagnostics and test the quality of random bytes generated by the device.

A pre-built version of swdiag.exe utility is already available here. Alternatively, the utility can be re-built from sources with Visual Studio C++ 2015, Visual Studio 2017 or newer.

For swdiag utility, run the following command:

swdiag.exe

swdiag utility will discover all the SwiftRNG devices connected to the system, will run general diagnostics and will execute tests such as APT, RCT and Chi-Square.