]> Cypherpunks repositories - gostls13.git/commit
runtime: common handling of _AT_RANDOM auxv
authorAustin Clements <austin@google.com>
Thu, 14 Apr 2016 16:32:28 +0000 (12:32 -0400)
committerAustin Clements <austin@google.com>
Sat, 16 Apr 2016 21:42:31 +0000 (21:42 +0000)
commit90addd3d41852192ba697d33c9b1660988b82ed7
tree92aadcb66953c0ef76751253ce9f7d708ebc843c
parentc955bb2040e601c474e547b8badbe44677c9fbdf
runtime: common handling of _AT_RANDOM auxv

The Linux kernel provides 16 bytes of random data via the auxv vector
at startup. Currently we consume this separately on 386, amd64, arm,
and arm64. Now that we have a common auxv parser, handle _AT_RANDOM in
the common path.

Change-Id: Ib69549a1d37e2d07a351cf0f44007bcd24f0d20d
Reviewed-on: https://go-review.googlesource.com/22062
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/os_linux.go
src/runtime/os_linux_386.go
src/runtime/os_linux_arm.go
src/runtime/os_linux_arm64.go
src/runtime/vdso_linux_amd64.go