From: Bryan C. Mills Date: Wed, 20 Apr 2022 15:17:59 +0000 (-0400) Subject: crypto/rand: apply the same max read size on Illumos as on Solaris X-Git-Tag: go1.19beta1~621 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=338a81741a9aecba1a80014eced5cb2d3852d8eb;p=gostls13.git crypto/rand: apply the same max read size on Illumos as on Solaris This case was missed in CL 370894, and masked by the lack of an Illumos TryBot. Fixes #52452. Change-Id: I7cda193e33c11a9d04eb888fdb5ec9218e6ed1b5 Reviewed-on: https://go-review.googlesource.com/c/go/+/401294 Run-TryBot: Bryan Mills Auto-Submit: Bryan Mills TryBot-Result: Gopher Robot Reviewed-by: Filippo Valsorda --- diff --git a/src/crypto/rand/rand_getrandom.go b/src/crypto/rand/rand_getrandom.go index cb31a5687a..478aa5c459 100644 --- a/src/crypto/rand/rand_getrandom.go +++ b/src/crypto/rand/rand_getrandom.go @@ -21,7 +21,7 @@ func init() { // is returned by a single call to getrandom() on systems where int // has a size of 32 bits. maxGetRandomRead = (1 << 25) - 1 - case "freebsd", "dragonfly", "solaris": + case "freebsd", "dragonfly", "solaris", "illumos": maxGetRandomRead = 1 << 8 default: panic("no maximum specified for GetRandom")