]> Cypherpunks repositories - gostls13.git/commit
crypto/rand: use the new getrandom syscall on FreeBSD
authorDavid Carlier <devnexen@gmail.com>
Tue, 21 Aug 2018 07:54:04 +0000 (07:54 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Aug 2018 01:49:02 +0000 (01:49 +0000)
commit64f3d75bc288679e9e18cb9513897e7139f3fc3b
treed67f3064d7c3a7fcfa3df9fa5ec66f112d8b5786
parent45c7d80832dcb93239a1bd48ad7c8328ac6f0532
crypto/rand: use the new getrandom syscall on FreeBSD

Since the 12.x branch, the getrandom syscall had been introduced
with similar interface as Linux's and consistent syscall id
across architectures.

Change-Id: I63d6b45dbe9e29f07f1b5b6c2ec8be4fa624b9ee
GitHub-Last-Rev: 6fb76e6522ef5ccb96d02445ffa39796dae89016
GitHub-Pull-Request: golang/go#25976
Reviewed-on: https://go-review.googlesource.com/120055
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/rand/rand.go
src/crypto/rand/rand_batched.go [new file with mode: 0644]
src/crypto/rand/rand_batched_test.go [moved from src/crypto/rand/rand_linux_test.go with 97% similarity]
src/crypto/rand/rand_freebsd.go [new file with mode: 0644]
src/crypto/rand/rand_linux.go
src/internal/syscall/unix/getrandom_freebsd.go [new file with mode: 0644]
src/internal/syscall/unix/getrandom_linux_generic.go