]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/missing_random.h
hexdecoct: make unbase64mem and unhexmem always use SIZE_MAX
[thirdparty/systemd.git] / src / basic / missing_random.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #if USE_SYS_RANDOM_H
5 # include <sys/random.h>
6 #else
7 # include <linux/random.h>
8 #endif
9
10 #ifndef GRND_NONBLOCK
11 #define GRND_NONBLOCK 0x0001
12 #endif
13
14 #ifndef GRND_RANDOM
15 #define GRND_RANDOM 0x0002
16 #endif
17
18 #ifndef GRND_INSECURE
19 #define GRND_INSECURE 0x0004
20 #endif