summaryrefslogtreecommitdiff
path: root/libgo/go/internal/syscall/unix/getrandom_linux_generic.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/internal/syscall/unix/getrandom_linux_generic.go')
-rw-r--r--libgo/go/internal/syscall/unix/getrandom_linux_generic.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/libgo/go/internal/syscall/unix/getrandom_linux_generic.go b/libgo/go/internal/syscall/unix/getrandom_linux_generic.go
index 0e632dc27a..8425800b6d 100644
--- a/libgo/go/internal/syscall/unix/getrandom_linux_generic.go
+++ b/libgo/go/internal/syscall/unix/getrandom_linux_generic.go
@@ -1,4 +1,4 @@
-// Copyright 2014 The Go Authors. All rights reserved.
+// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@@ -6,4 +6,11 @@
package unix
+// Linux getrandom system call number.
+// See GetRandom in getrandom_linux.go.
+//
+// This file is named "generic" because at a certain point Linux
+// started standardizing on system call numbers across
+// architectures. So far this means only arm64 uses the standard
+// numbers.
const randomTrap uintptr = 278