1
0
mirror of https://github.com/golang/go synced 2024-11-23 14:50:07 -07:00
go/src/internal
Tobias Klauser 6155091042 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>
2018-10-24 13:43:00 +00:00
..
bytealg internal/bytealg: improve asm for memequal on ppc64x 2018-10-23 19:22:44 +00:00
cpu internal/cpu: add options and warnings for required cpu features 2018-10-24 06:27:53 +00:00
fmtsort fmt: print maps in key-sorted order 2018-10-18 21:12:24 +00:00
goroot go/build: move isStandardPackage to new internal/goroot package 2018-09-25 22:07:43 +00:00
nettrace net, net/http: don't trace DNS dials 2016-05-14 00:14:25 +00:00
poll internal/poll: add FD.Fsync on aix 2018-10-12 16:10:54 +00:00
race testing: mark tests and benchmarks failed if a race occurs during execution 2016-11-03 18:19:49 +00:00
singleflight net: don't let cancelation of a DNS lookup affect another lookup 2018-03-16 13:39:38 +00:00
syscall internal/syscall/unix: omit unnecessary randomTrap check in GetRandom 2018-10-24 13:43:00 +00:00
testenv all: skip unsupported tests for js/wasm 2018-04-30 19:39:18 +00:00
testlog cmd/go: invalidate cached test results if env vars or files change 2017-12-11 19:08:32 +00:00
trace all: fix typos detected by github.com/client9/misspell 2018-08-23 15:54:07 +00:00
traceparser internal/traceparser: provide parser that uses less space and parses segments of runtime trace files 2018-10-23 14:00:14 +00:00