summaryrefslogtreecommitdiff
path: root/rnd.h
blob: 154fccfb75a42fcd89e56c197b0de8f2d997371d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef RND_H
#define RND_H

#define HIG_ENTROPY_SOURCE	"/dev/random"
#define LOW_ENTROPY_SOURCE	"/dev/urandom"

/* secrand is 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);
extern void gen_key_bytes(unsigned char *area, size_t len);

#endif /* RND_H */
64f8e076bb08f2c60'>logplain -rw-r--r--seq_oss_device.h4638logplain -rw-r--r--seq_oss_event.c13000logplain -rw-r--r--seq_oss_event.h2800logplain -rw-r--r--seq_oss_init.c11542logplain -rw-r--r--seq_oss_ioctl.c5041logplain -rw-r--r--seq_oss_midi.c16858logplain -rw-r--r--seq_oss_midi.h2035logplain -rw-r--r--seq_oss_readq.c4680logplain