From 7ea4576392b014490e6308ad82d695cc85a0b8bd Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 4 Jun 2013 12:01:56 +0200 Subject: rnd: move entropy source definition to rnd It's better off there anyway. Signed-off-by: Daniel Borkmann --- rnd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rnd.h') diff --git a/rnd.h b/rnd.h index 3d36d8e..dd128a1 100644 --- a/rnd.h +++ b/rnd.h @@ -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 */ -- cgit v1.2.3-54-g00ecf