getrandom_linux_generic.go 515 Bytes
Newer Older
1
// Copyright 2014 The Go Authors. All rights reserved.
2 3 4
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

5
// +build arm64 nios2 riscv64
6

7
package unix
8

9 10 11 12 13 14 15
// 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.
16
const randomTrap uintptr = 278