]> Cypherpunks repositories - gostls13.git/commit
internal/syscall/unix: eliminate non-trivial randomTrap initializer
authorMatthew Dempsky <mdempsky@google.com>
Wed, 4 Nov 2015 22:51:51 +0000 (14:51 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 5 Nov 2015 00:09:59 +0000 (00:09 +0000)
commitb16c699195a33c4451ed9f1bae50a51fa0290ba1
treef643caec32de018d9418cd23480e504c22e8beda
parentdcd9e5bc0f5899c4be5d06147c4cdbbda5b49b01
internal/syscall/unix: eliminate non-trivial randomTrap initializer

While here, enable getrandom on arm64 too (using the value found in
include/uapi/asm-generic/unistd.h, which seems to match up with other
GOARCH=arm64 syscall numbers).

Updates #10848.

Change-Id: I5ab36ccf6ee8d5cc6f0e1a61d09f0da7410288b9
Reviewed-on: https://go-review.googlesource.com/16662
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/syscall/unix/getrandom_linux.go
src/internal/syscall/unix/getrandom_linux_386.go [new file with mode: 0644]
src/internal/syscall/unix/getrandom_linux_amd64.go [new file with mode: 0644]
src/internal/syscall/unix/getrandom_linux_arm.go [new file with mode: 0644]
src/internal/syscall/unix/getrandom_linux_generic.go [new file with mode: 0644]
src/internal/syscall/unix/getrandom_linux_ppc64x.go [new file with mode: 0644]