rnd: move entropy source definition to rnd
[netsniff-ng.git] / rnd.h
blobdd128a16deaa5230e38f313cf6e12ebfd1f5029c
1 #ifndef RND_H
2 #define RND_H
4 #define HIG_ENTROPY_SOURCE "/dev/random"
5 #define LOW_ENTROPY_SOURCE "/dev/urandom"
7 /* Note: it's 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);
13 #endif /* RND_H */