2019-08-16 06:03:07 +00:00
|
|
|
# Solo Extras
|
|
|
|
|
|
|
|
## Random number generation
|
|
|
|
|
|
|
|
Solo contains a True Random Number Generator (TRNG). A TRNG is a hardware based mechanism
|
2019-09-02 20:36:02 +00:00
|
|
|
that leverages natural phenomenon to generate random numbers, which can be better than a traditional
|
2019-08-16 06:03:07 +00:00
|
|
|
RNG that has state and updates deterministically using cryptographic methods.
|
|
|
|
|
2022-03-08 12:19:09 +00:00
|
|
|
You can easily access the TRNG stream on Solo using our python tool [`solo1`](https://github.com/solokeys/solo1-cli).
|
2019-08-16 06:03:07 +00:00
|
|
|
|
|
|
|
```
|
2022-03-08 12:19:09 +00:00
|
|
|
solo1 key rng raw > random.bin
|
2019-08-16 06:03:07 +00:00
|
|
|
```
|
|
|
|
|
2019-09-02 20:41:42 +00:00
|
|
|
Or you can seed the state of the RNG on your kernel (`/dev/random`).
|
2019-08-16 06:03:07 +00:00
|
|
|
|
|
|
|
```
|
2022-03-08 12:19:09 +00:00
|
|
|
solo1 key rng feedkernel
|
2019-08-16 06:03:07 +00:00
|
|
|
```
|