]>
git.proxmox.com Git - mirror_spl.git/blob - include/sys/random.h
8 #include <linux/module.h>
9 #include <linux/random.h>
12 * Should add support for blocking in the future to
13 * ensure that proper entopy is collected. ZFS doesn't
14 * use it at the moment so this is good enough for now.
15 * Always will succeed by returning 0.
18 random_get_bytes(uint8_t *ptr
, size_t len
)
21 get_random_bytes((void *)ptr
,(int)len
);
25 /* Always will succeed by returning 0. */
27 random_get_pseudo_bytes(uint8_t *ptr
, size_t len
)
30 get_random_bytes((void *)ptr
,(int)len
);
38 #endif /* _SPL_RANDOM_H */