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 */
l'>mode:
authorPing Cheng <pinglinux@gmail.com>2016-11-28 13:20:51 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-11-30 08:59:26 -0800
commit2425f1808123bf69a8f66d4ec90e0d0e302c2613 (patch)
tree1d84b087301a97847d1708bb0f3867edb6388c87 /Documentation/i2c
parente9fb7cc63801d3dc71b60ca11c4d08f68f879a53 (diff)
Input: change KEY_DATA from 0x275 to 0x277
0x275 is used by KEY_FASTREVERSE. Fixes: 488326947cd1 ("Input: add HDMI CEC specific keycodes") Signed-off-by: Ping Cheng <ping.cheng@wacom.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/i2c')