summaryrefslogtreecommitdiff
path: root/rnd.h
diff options
context:
space:
mode:
Diffstat (limited to 'rnd.h')
-rw-r--r--rnd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/rnd.h b/rnd.h
index dd128a1..154fccf 100644
--- a/rnd.h
+++ b/rnd.h
@@ -4,10 +4,11 @@
#define HIG_ENTROPY_SOURCE "/dev/random"
#define LOW_ENTROPY_SOURCE "/dev/urandom"
-/* Note: it's not really secure, but the name only suggests it's better to use
+/* secrand is not really secure, but the name only suggests it's better to use
* than rand(3) when transferring bytes over the network in non-security
* critical structure members. secrand() is only used to fill up salts actually.
*/
extern int secrand(void);
+extern void gen_key_bytes(unsigned char *area, size_t len);
#endif /* RND_H */