]> Cypherpunks repositories - gostls13.git/commit
crypto/rand, internal/syscall/unix: use simpler random seed on NetBSD
authorMaya Rashish <maya@NetBSD.org>
Wed, 2 Aug 2023 08:32:07 +0000 (08:32 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 7 Aug 2023 00:26:43 +0000 (00:26 +0000)
commit9701d078c62393bfb424de7171895f85b01da4e3
treeb6ea311f42c2e7ce5b1249e64435babf410f5bb0
parent20b5f3ae8b01a14195057af7e082cdcf93fa2bce
crypto/rand, internal/syscall/unix: use simpler random seed on NetBSD

sysctl kern.arandom has been supported since NetBSD 4.0, works inside a
chroot, has no confusing bells and whistles like Linux getrandom,
requires no complicated querying to avoid SIGSYS traps, and is what
NetBSD 10 will usee for the getentropy(3) library routine soon to
appear in POSIX.

Change-Id: I23bd84ecd5ff3e33e8958c60896db842c44667ba
GitHub-Last-Rev: 5db094c85ae14bbd9f80247d46d90e00061187cc
GitHub-Pull-Request: golang/go#61441
Reviewed-on: https://go-review.googlesource.com/c/go/+/511036
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/crypto/rand/rand_getentropy.go
src/crypto/rand/rand_getrandom.go
src/internal/syscall/unix/getentropy_netbsd.go [new file with mode: 0644]
src/internal/syscall/unix/getrandom_netbsd.go [deleted file]