4 #define HIG_ENTROPY_SOURCE "/dev/random"
5 #define LOW_ENTROPY_SOURCE "/dev/urandom"
7 /* secrand is not really secure, but the name only suggests it's better to use
8 * than rand(3) when transferring bytes over the network in non-security
9 * critical structure members. secrand() is only used to fill up salts actually.
11 extern int secrand(void);
12 extern void gen_key_bytes(unsigned char *area
, size_t len
);