docs: add reference to Travis CI
[netsniff-ng.git] / rnd.h
blob154fccfb75a42fcd89e56c197b0de8f2d997371d
1 #ifndef RND_H
2 #define RND_H
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);
14 #endif /* RND_H */