summaryrefslogtreecommitdiffstats
path: root/libblkid/randutils.h
blob: dec5e355a43947a0133087a9ef2fcd1181b0da99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef UTIL_LINUX_RANDUTILS
#define UTIL_LINUX_RANDUTILS

#ifdef HAVE_SRANDOM
#define srand(x)	srandom(x)
#define rand()		random()
#endif

extern int random_get_fd(void);
extern void random_get_bytes(void *buf, size_t nbytes);

#endif