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 */
0' selected='selected'>includemode:
authorChristian König <christian.koenig@amd.com>2016-08-17 13:44:20 +0200
committerAlex Deucher <alexander.deucher@amd.com>2016-08-22 13:47:23 -0400
commit1fdc0b76ea9b6f6a50aa76b7cb7a025f87c1319d (patch)
tree9c387a6cb4ef2029946a1167a9ef66847eefd419
parent8cc5e80641ed5e3973bd44c170529a756742e990 (diff)
drm/amdgpu: fix lru size grouping v2
Adding a BO can make it the insertion point for larger sizes as well. v2: add a comment about the guard structure. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat