]> Cypherpunks.ru repositories - gostls13.git/commit
crypto/rand, internal/syscall/unix: add support for getrandom syscall on solaris
authorTobias Klauser <tklauser@distanz.ch>
Wed, 10 Mar 2021 09:26:20 +0000 (10:26 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 11 Mar 2021 08:19:39 +0000 (08:19 +0000)
commit9ece63f0647ec34cc729ad71a87254193014dcca
tree920f2e4c8d3ab2780d4adbc7605469ea77da5c10
parent79e3ee52f48411eb7c4edfe3daa55e2ecf7a6c61
crypto/rand, internal/syscall/unix: add support for getrandom syscall on solaris

The getrandom syscall is available on Solaris and Illumos, see
https://docs.oracle.com/cd/E88353_01/html/E37841/getrandom-2.html and
https://illumos.org/man/2/getrandom

Change-Id: Id1c65d6a5b2fbc80d20b43d8b32dab137ca950ca
Reviewed-on: https://go-review.googlesource.com/c/go/+/299134
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/crypto/rand/rand_batched.go
src/crypto/rand/rand_batched_test.go
src/crypto/rand/rand_solaris.go [new file with mode: 0644]
src/internal/syscall/unix/getrandom_solaris.go [new file with mode: 0644]