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.
|
|
|
|
|
|
2019-09-02 20:36:02 +00:00
|
|
|
You can easily access the TRNG stream on Solo using our python tool [`solo-python`](https://github.com/solokeys/solo-python).
|
2019-08-16 06:03:07 +00:00
|
|
|
|
|
|
|
|
```
|
|
|
|
|
solo key rng raw > random.bin
|
|
|
|
|
```
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
```
|
|
|
|
|
solo key rng feedkernel
|
|
|
|
|
```
|