Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does Go's crypto/rand[0] package meet this criteria?

[0] https://golang.org/src/crypto/rand/rand_linux.go



Yes, use crypto/rand for Go.


+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


Unless you're on Plan 9, this isn't a concern.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: