diff options
Diffstat (limited to 'rnd.h')
-rw-r--r-- | rnd.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,6 +1,13 @@ #ifndef RND_H #define RND_H +#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 + * 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); #endif /* RND_H */ |