github.com/bir3/gocompiler@v0.9.2202/src/internal/syscall/unix/getrandom_freebsd.go (about) 1 // Copyright 2018 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 package unix 6 7 // FreeBSD getrandom system call number. 8 const getrandomTrap uintptr = 563 9 10 const ( 11 // GRND_NONBLOCK means return EAGAIN rather than blocking. 12 GRND_NONBLOCK GetRandomFlag = 0x0001 13 14 // GRND_RANDOM is only set for portability purpose, no-op on FreeBSD. 15 GRND_RANDOM GetRandomFlag = 0x0002 16 )