]>
git.proxmox.com Git - mirror_spl-debian.git/blob - include/linux-random.h
1 #ifndef _SYS_LINUX_RANDOM_H
2 #define _SYS_LINUX_RANDOM_H
8 #include <linux/random.h>
11 * Should add support for blocking in the future to
12 * ensure that proper entopy is collected. ZFS doesn't
13 * use it at the moment so this is good enough for now.
14 * Always will succeed by returning 0.
17 random_get_bytes(uint8_t *ptr
, size_t len
)
20 get_random_bytes((void *)ptr
,(int)len
);
24 /* Always will succeed by returning 0. */
26 random_get_pseudo_bytes(uint8_t *ptr
, size_t len
)
29 get_random_bytes((void *)ptr
,(int)len
);
37 #endif /* _SYS_LINUX_RANDOM_H */