diff options
| author | Bryan C. Mills <bcmills@google.com> | 2022-04-20 11:17:59 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-04-20 16:05:16 +0000 |
| commit | 338a81741a9aecba1a80014eced5cb2d3852d8eb (patch) | |
| tree | 6261f107d678338e19449eb2d7fa2716050408d1 /src | |
| parent | 17f8d98a4adf8386e63a0d2902ff42ca5e80996e (diff) | |
| download | go-338a81741a9aecba1a80014eced5cb2d3852d8eb.tar.xz | |
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 <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <valsorda@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/rand/rand_getrandom.go | 2 |
1 files changed, 1 insertions, 1 deletions
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") |
