github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/not-internal/syscall/unix/getrandom_linux_generic.go (about)

     1  // Copyright 2014 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build linux
     6  // +build arm64 riscv64
     7  
     8  package unix
     9  
    10  // Linux getrandom system call number.
    11  // See GetRandom in getrandom_linux.go.
    12  //
    13  // This file is named "generic" because at a certain point Linux started
    14  // standardizing on system call numbers across architectures. So far this means
    15  // only arm64 and riscv64 use the standard numbers.
    16  const randomTrap uintptr = 278