February 2018
Intermediate to advanced
340 pages
9h 43m
English
This recipe shows how to generate random numbers. This functionality is provided by the math/rand package. The random numbers generated by math/rand are considered cryptographically insecure because the sequences are repeatable with given seed.
To generate cryptographically secure numbers, the crypto/rand package should be used. These sequences are not repeatable.
Read now
Unlock full access