| 1 |
// Copyright 2021 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 |
// DragonFlyBSD getrandom system call number. |
| 8 |
const getrandomTrap uintptr = 550 |
| 9 |
|
| 10 |
const ( |
| 11 |
// GRND_RANDOM is only set for portability purpose, no-op on DragonFlyBSD. |
| 12 |
GRND_RANDOM GetRandomFlag = 0x0001 |
| 13 |
|
| 14 |
// GRND_NONBLOCK means return EAGAIN rather than blocking. |
| 15 |
GRND_NONBLOCK GetRandomFlag = 0x0002 |
| 16 |
) |