diff options
| author | Jeff R. Allen <jra@nella.org> | 2015-07-23 15:45:23 +0200 |
|---|---|---|
| committer | Dave Cheney <dave@cheney.net> | 2015-07-26 02:57:16 +0000 |
| commit | 9b7e728ee8ddacad70cbf5bced36c8f72af65f38 (patch) | |
| tree | f4771f40afbc2358e7eff1bdb4188f09876f7b55 /src | |
| parent | c09d284953f3b628087896da65b6c0227529e33e (diff) | |
| download | go-9b7e728ee8ddacad70cbf5bced36c8f72af65f38.tar.xz | |
crypt/rand: update docs for Linux
Update the docs to explain the code added in
commit 67e1d400.
Fixes #11831.
Change-Id: I8fe72e449507847c4bd9d77de40947ded7f2ff9d
Reviewed-on: https://go-review.googlesource.com/12515
Reviewed-by: Dave Cheney <dave@cheney.net>
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/rand/rand.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/rand/rand.go b/src/crypto/rand/rand.go index 4da3adb701..ee32fa0bd6 100644 --- a/src/crypto/rand/rand.go +++ b/src/crypto/rand/rand.go @@ -10,7 +10,9 @@ import "io" // Reader is a global, shared instance of a cryptographically // strong pseudo-random generator. +// // On Unix-like systems, Reader reads from /dev/urandom. +// On Linux, Reader uses getrandom(2) if available, /dev/urandom otherwise. // On Windows systems, Reader uses the CryptGenRandom API. var Reader io.Reader |
