#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 */ net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2016-12-13 09:03:13 -0700
committerJon Mason <jdmason@kudzu.us>2016-12-23 16:10:54 -0500
commit09e71a6f13445974fe9b70b6d4b68ac362cd68b6 (patch)
treedbfc1fc833d55b8b4ed612ef762c6c338507ebc9
parent5c43c52d5fb6163120ae5d9a281c3b757ca6119c (diff)
ntb: fix SKX NTB config space size register offsets
The offsets for the SZ registers are wrong. Updated. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Reported-by: Sandeep Mann <sandeep@purestorage.com> Tested-by: Zachary Ross <zacharyx.ross@intel.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>