]> Cypherpunks.ru repositories - gostls13.git/commit
crypto/rand, internal/syscall/unix: don't use getentropy on iOS
authorTobias Klauser <tklauser@distanz.ch>
Thu, 19 Aug 2021 14:36:38 +0000 (16:36 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Fri, 20 Aug 2021 16:44:10 +0000 (16:44 +0000)
commit700743137462471189f58ee85fe64754cd340322
tree40e2c0ec41a6ccc01852424b496016c831be2cf3
parent303446395d8bfdd05da8c69f1f3f862e7e7a35db
crypto/rand, internal/syscall/unix: don't use getentropy on iOS

CL 302489 switched crypto/rand to use getentropy on darwin, however this
function is not available on iOS. Enable getentropy only on macOS and
disable it on iOS.

Fixes #47812

Change-Id: Ib7ba5d77346aee87904bb93d60cacc845f5c0089
Reviewed-on: https://go-review.googlesource.com/c/go/+/343609
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/crypto/rand/rand_getentropy.go
src/internal/syscall/unix/getentropy_darwin.go