summaryrefslogtreecommitdiff
path: root/rnd.h
blob: dd128a16deaa5230e38f313cf6e12ebfd1f5029c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 */