1
0
mirror of https://github.com/golang/go synced 2024-11-18 09:14:43 -07:00

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>
This commit is contained in:
Jeff R. Allen 2015-07-23 15:45:23 +02:00 committed by Dave Cheney
parent c09d284953
commit 9b7e728ee8

View 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