diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2023-01-25 16:19:26 +0100 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2023-01-26 10:15:35 +0000 |
| commit | 4df10fba1687a6d4f51d7238a403f8f2298f6a16 (patch) | |
| tree | dc48d96313b553d4893f81e45643d9fe26eda576 /src/crypto/rand/rand.go | |
| parent | cea70301e2283986aadf2e4e621a3b5b2a790254 (diff) | |
| download | go-json-isValidNumber-before.tar.xz | |
crypto/rand, internal/syscall/unix: add support for getrandom on NetBSD ≥ 10.0json-isValidNumber-before
The getrandom syscall was added to NetBSD in version 10.0, see
https://man.netbsd.org/NetBSD-10.0-STABLE/getrandom.2
Change-Id: I2714c1040791f7f4728be8d869058a38cbd93d4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/463123
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Diffstat (limited to 'src/crypto/rand/rand.go')
| -rw-r--r-- | src/crypto/rand/rand.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/rand/rand.go b/src/crypto/rand/rand.go index af85b966df..ac2635d1b3 100644 --- a/src/crypto/rand/rand.go +++ b/src/crypto/rand/rand.go @@ -11,7 +11,7 @@ import "io" // Reader is a global, shared instance of a cryptographically // secure random number generator. // -// On Linux, FreeBSD, Dragonfly and Solaris, Reader uses getrandom(2) if +// On Linux, FreeBSD, Dragonfly, NetBSD and Solaris, Reader uses getrandom(2) if // available, /dev/urandom otherwise. // On OpenBSD and macOS, Reader uses getentropy(2). // On other Unix-like systems, Reader reads from /dev/urandom. |
