]> Cypherpunks repositories - gostls13.git/commit
internal/syscall/unix: omit unnecessary randomTrap check in GetRandom
authorTobias Klauser <tklauser@distanz.ch>
Wed, 24 Oct 2018 11:32:24 +0000 (13:32 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Wed, 24 Oct 2018 13:43:00 +0000 (13:43 +0000)
commit6155091042b8c341d0320937241a938060847f9c
tree49e3cf1f83ea6155ce832d8e0a4bf7a142ad72d2
parent75a0b9dbf37117d6bfcc9dacf89f817954f3aeb7
internal/syscall/unix: omit unnecessary randomTrap check in GetRandom

The randomTrap const is initialized to a non-zero value for linux in
getrandom_linux_$GOARCH.go and for freebsd in getrandom_freebsd.go
directly since CL 16662. Thus, omit the unnecessary check.

Change-Id: Id20cd628dfe6fab9908fa5258c3132e3b422a6b4
Reviewed-on: https://go-review.googlesource.com/c/144108
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/syscall/unix/getrandom_freebsd.go
src/internal/syscall/unix/getrandom_linux.go