Operation
Each of the two random noise sources of the SwiftRNG is an analog electronic circuit that generates a random electrical signal from a reverse-biased Zener diode using the avalanche effect. The electrical noise generated by each source is independently amplified and converted into digital values as bytes. The bytes from both sources are combined to produce a low-bias random byte stream.
To further reduce bias, the software kit post-processes the resulting byte stream with SHA-256 by default, or with SHA-512 (Marsaglia’s XorShift64 is available with SwiftRNG device versions 1.2 and later).
The SwiftRNG implements an embedded health check test (HCT) that continuously monitors the quality of the random noise sources immediately after the electrical noise is digitized and before any further processing takes place. The embedded monitoring logic notifies the host computer software if it detects an unexpected deviation from normal operation or a complete malfunction of either random source.
With SwiftRNG v1.2 and later and the latest software API updates, it is possible to retrieve frequency table snapshots for each of the noise sources to check the frequency distribution and quality of the random numbers.
In addition, the software kit continuously runs the Repetition Count and Adaptive Proportion tests (NIST SP 800-90B) on the host computer to verify the quality of the random bytes retrieved over USB.
The device is powered entirely by the USB bus, requires no additional power source, and is protected by an overload protection circuit. All SwiftRNG devices are equipped with ESD protection and EMI filtering circuits. After the device is plugged into a USB host, it is ready to accept commands in less than a second (this time is used to run start-up tests and to wait for USB driver readiness).
Supported systems
- Linux (x86, x64, ARM)
- FreeBSD 12/13/14
- macOS (Intel and Apple Silicon)
- Windows 10/11 (64-bit) and Windows Server 2016/2019 (64-bit)
Fabrication and testing
All SwiftRNG devices are designed and assembled in the United States. After each device is assembled, both random noise sources are individually inspected and verified using an oscilloscope and a spectrum analyzer to confirm that the electrical noise characteristics are within the expected ranges. The device does not require any tune-up after it is assembled, and the quality of the entropy produced remains constant. Before a device is shipped, random bytes produced by it are tested with well-known statistical tests for randomness (Diehard, Dieharder, NIST, and Ent), and the frequency tables for each device are inspected.
Device API
The SwiftRNG device API operates on 1-byte commands. The following table contains the complete command set with descriptions.
| Command as ASCII char | Response | Description |
|---|---|---|
x |
16,000 random bytes + the status byte | The response will contain 16,000 low biased (RAW) random bytes and an additional byte for the status byte. The status byte will contain 0 value for the success or an error code. |
m |
8 bytes of the device model + the status byte | The response will contain 8 bytes for the device model as ASCII codes. The status byte will contain 0 value for the success or an error code. |
v |
4 bytes of the device version + the status byte | The response will contain 4 bytes for the device version as ASCII codes. The status byte will contain 0 value for the success or an error code. |
s |
15 bytes of the device serial number + status byte | The response will contain 15 bytes for the device serial number as ASCII codes. The status byte will contain 0 value for the success or an error code. |
f |
512 16-bit integers that represent frequency tables of the noise sources + the status byte | The first 256 16-bit integers are frequency table of the first noise source and the next 256 16-bit integers are frequency table of the second noise source. The status byte will contain 0 value for the success or an error code. This command is only available when used with SwiftRNG devices versions 1.2 or higher. |
< |
16,000 random bytes + the status byte | The response will contain 16,000 of RAW unprocessed and unmodified random bytes generated from the first noise source. The status byte will contain 0 value for the success or an error code. This command is only available when used with SwiftRNG devices versions 1.2 or higher. |
> |
16,000 random bytes + the status byte | The response will contain 16,000 of RAW unprocessed and unmodified random bytes generated from the second noise source. The status byte will contain 0 value for the success or an error code. This command is only available when used with SwiftRNG devices versions 1.2 or higher. |
0 |
status byte | Set device power profile number 0 for the slowest speed and lowest power consumption. The status byte will contain 0 value for the success or an error code. |
1 |
status byte | Set device power profile number 1. The status byte will contain 0 value for the success or an error code. |
2 |
status byte | Set device power profile number 2. The status byte will contain 0 value for the success or an error code. |
3 |
status byte | Set device power profile number 3. The status byte will contain 0 value for the success or an error code. |
4 |
status byte | Set device power profile number 4. The status byte will contain 0 value for the success or an error code. |
5 |
status byte | Set device power profile number 5. The status byte will contain 0 value for the success or an error code. |
6 |
status byte | Set device power profile number 6. The status byte will contain 0 value for the success or an error code. |
7 |
status byte | Set device power profile number 7. The status byte will contain 0 value for the success or an error code. |
8 |
status byte | Set device power profile number 8. The status byte will contain 0 value for the success or an error code. |
9 |
status byte | Set device power profile number 9 for the highest speed and power consumption. The status byte will contain 0 value for the success or an error code. |
Operating temperature (v1.4)
- Maximum device operating temperature: 149°F (65°C). The temperature is measured on the bottom surface of the device in the middle area.
- Maximum ambient temperature: between 80°F (27°C) and 100°F (38°C), depending on the selected power profile (see the table below). The connected device should be located at least 1 inch away from other USB devices in an area with free or forced air circulation.
| Power profile number | Maximum ambient temperature (SwiftRNG v1.4) |
|---|---|
| 9 (default) | 80°F (27°C) |
| 8 | 82°F (28°C) |
| 7 | 84°F (29°C) |
| 6 | 86°F (30°C) |
| 5 | 89°F (32°C) |
| 4 | 93°F (34°C) |
| 3 | 96°F (36°C) |
| 2 | 100°F (38°C) |
| 1 | 100°F (38°C) |
| 0 | 100°F (38°C) |
Other information
- Device version currently in production: SwiftRNG V1.4
- Weight: 21 grams (0.74 oz)
- Power consumption: no more than 200 mA in active mode (depending on the selected power profile) and 80 mA when inactive
- Lead-free and RoHS compliance: all parts and materials used in SwiftRNG devices are lead-free and RoHS compliant
- Tested and compliant with FCC Part 15 (Class B), ISED ICES-003 (Class B), and CE requirements. See the compliance page for details.
- Filled inside with an epoxy compound for protection and heat dissipation