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 */
25'>25space:mode:
authorAxel Lin <axel.lin@ingics.com>2016-04-26 07:31:15 +0800
committerMark Brown <broonie@kernel.org>2016-04-26 11:14:35 +0100
commit2452ee25255af95d122ff66ea390facb67a61fc3 (patch)
treee9e883355365be9bc176b4949b689503dfe3117d /Documentation/hwmon/tmp401
parent1bcb9f8ceb67803960871ecf4ed2d365a2a919c8 (diff)
spi: pic32: Set proper bits_per_word_mask
This driver only supports 8/16/32 bits_per_word, so set master->bits_per_word_mask accordingly. With this change, we can remove the spi->bits_per_word checking in pic32_spi_setup as it's done by spi core. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/hwmon/tmp401')