Debian Codegraph @

rt/+dragonfly/random.ha

raw
1 // SPDX-License-Identifier: MPL-2.0
2 // (c) Hare authors <https://harelang.org>
3
4 //
5 // Flags for getrandom()
6 //
7
8 // This flag does nothing on DragonFly. /dev/random and
9 // /dev/urandom are identical.
10 export def GRND_RANDOM: u32 = 0x0001;
11
12 // Return EAGAIN instead of blocking, if the random(4)
13 // device has not yet been seeded. By default, getrandom()
14 // will block until the device is seeded.
15 export def GRND_NONBLOCK: u32 = 0x0002;
16
17 // This flag is treated as an alternative name for
18 // GRND_NONBLOCK. It is provided solely for API
19 // compatibility with Linux.
20 export def GRND_INSECURE: u32 = 0x0004;