]> Cypherpunks repositories - gostls13.git/commit
crypto/rand, internal/syscall/unix: add support for getrandom on NetBSD ≥ 10.0
authorTobias Klauser <tklauser@distanz.ch>
Wed, 25 Jan 2023 15:19:26 +0000 (16:19 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 26 Jan 2023 10:15:35 +0000 (10:15 +0000)
commit4df10fba1687a6d4f51d7238a403f8f2298f6a16
treedc48d96313b553d4893f81e45643d9fe26eda576
parentcea70301e2283986aadf2e4e621a3b5b2a790254
crypto/rand, internal/syscall/unix: add support for getrandom on NetBSD ≥ 10.0

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>
src/crypto/rand/rand.go
src/crypto/rand/rand_getrandom.go
src/internal/syscall/unix/getrandom_netbsd.go [new file with mode: 0644]