summaryrefslogtreecommitdiffstats
path: root/include/randutils.h
diff options
context:
space:
mode:
authorSami Kerola2014-03-08 22:43:26 +0100
committerKarel Zak2014-03-26 10:36:18 +0100
commit0720d60cc1b39c6ba2900b1aa61cbc98feba711a (patch)
tree9007cfd40e96dd03d412975740eb6e8e5ea60dbb /include/randutils.h
parentflock: use nfs4 fallback on EBADF too (diff)
downloadkernel-qcow2-util-linux-0720d60cc1b39c6ba2900b1aa61cbc98feba711a.tar.gz
kernel-qcow2-util-linux-0720d60cc1b39c6ba2900b1aa61cbc98feba711a.tar.xz
kernel-qcow2-util-linux-0720d60cc1b39c6ba2900b1aa61cbc98feba711a.zip
mcookie: use lib/randutils
The mcookie should reuse existing code, and there is definitely no need to prefer /dev/random for this utility. See reference for explanation about later statement. References: http://www.2uo.de/myths-about-urandom/ Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/randutils.h')
-rw-r--r--include/randutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/randutils.h b/include/randutils.h
index dec5e355a..17e2a02fa 100644
--- a/include/randutils.h
+++ b/include/randutils.h
@@ -8,5 +8,6 @@
extern int random_get_fd(void);
extern void random_get_bytes(void *buf, size_t nbytes);
+extern const char *random_tell_source(void);
#endif