]> Cypherpunks.ru repositories - gostls13.git/commit
crypto/rand, internal/syscall/unix: add support for getentropy syscall on darwin
authorTobias Klauser <tklauser@distanz.ch>
Wed, 17 Mar 2021 10:17:02 +0000 (11:17 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Wed, 17 Mar 2021 22:14:28 +0000 (22:14 +0000)
commitf38b6428a2d1beae784a9402368e4d7f9c7cd8c5
treeccfe175969079982dadacf923b2353c5ad81106f
parentf82ce7fb230c0c0934be8975bd8b56c953c29422
crypto/rand, internal/syscall/unix: add support for getentropy syscall on darwin

The getentropy syscall is available on macOS since version 10.12, which
is the minimum required version since Go 1.15.

Change-Id: I294259af0b11df9669e4dc5fa891d2f2f039d91a
Reviewed-on: https://go-review.googlesource.com/c/go/+/302489
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/crypto/rand/rand_getentropy.go [moved from src/crypto/rand/rand_openbsd.go with 79% similarity]
src/internal/syscall/unix/asm_darwin.s [new file with mode: 0644]
src/internal/syscall/unix/getentropy_darwin.go [new file with mode: 0644]