]> Cypherpunks repositories - gostls13.git/commitdiff
crypt/rand: update docs for Linux
authorJeff R. Allen <jra@nella.org>
Thu, 23 Jul 2015 13:45:23 +0000 (15:45 +0200)
committerDave Cheney <dave@cheney.net>
Sun, 26 Jul 2015 02:57:16 +0000 (02:57 +0000)
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>
src/crypto/rand/rand.go

index 4da3adb7010535695838296e7eca00c59a9aa811..ee32fa0bd67e52cffea909e36d7ba0eeeb1d2056 100644 (file)
@@ -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