mirror of
https://github.com/golang/go
synced 2024-11-19 04:24:39 -07:00
internal/syscall: add support for getrandom on arm
Added in linux commit eb6452537b28 LGTM=agl R=agl CC=golang-codereviews https://golang.org/cl/130170043
This commit is contained in:
parent
e0df11d57e
commit
1a8c00ea21
@ -12,8 +12,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var randomTrap = map[string]uintptr{
|
var randomTrap = map[string]uintptr{
|
||||||
"amd64": 318,
|
|
||||||
"386": 355,
|
"386": 355,
|
||||||
|
"amd64": 318,
|
||||||
|
"arm": 384,
|
||||||
}[runtime.GOARCH]
|
}[runtime.GOARCH]
|
||||||
|
|
||||||
var randomUnsupported int32 // atomic
|
var randomUnsupported int32 // atomic
|
||||||
|
Loading…
Reference in New Issue
Block a user