3 ms·
Does Go's crypto/rand[0] package meet this criteria? [0] https://golang.org/src/crypto/rand/rand_linux.go https://golang.org/src/crypto/rand/rand_linux.go
by billhathaway 10y ago
Does Go's crypto/rand[0] package meet this criteria?
[0] https://golang.org/src/crypto/rand/rand_linux.go https://golang.org/src/crypto/rand/rand_linux.go
- tptacek 10y agoYes, use crypto/rand for Go.
- niftich 10y ago+1 to this question. If the rand_linux strategy linked above decides to fall back to rand_unix, it can result in a userspace AES-based generator [1] running on output from /dev/random [1] https://golang.org/src/crypto/rand/rand_unix.go https://golang.org/src/crypto/rand/rand_unix.go
- tptacek 10y agoUnless you're on Plan 9, this isn't a concern.