aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorimoseyon <imoseyon@gmail.com>2014-12-14 10:36:51 -0800
committerMoyster <oysterized@gmail.com>2016-09-10 12:06:52 +0200
commite9c9fff8d3d4e053157db364ae4840882ab30eac (patch)
tree43be6a1fd3e2e87290c8820c896c468a4b09e7b2 /include/linux
parentb245cbd5c6ae4cfa0fea4f61b84efc0d2397df78 (diff)
random: sprinkle e/f/prandom in places that deplete entropy often
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/etherdevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h
index c62386196..55780af07 100644
--- a/include/linux/etherdevice.h
+++ b/include/linux/etherdevice.h
@@ -154,7 +154,7 @@ static inline bool is_valid_ether_addr(const u8 *addr)
*/
static inline void eth_random_addr(u8 *addr)
{
- get_random_bytes(addr, ETH_ALEN);
+ prandom_bytes(addr, ETH_ALEN);
addr[0] &= 0xfe; /* clear multicast bit */
addr[0] |= 0x02; /* set local assignment bit (IEEE802) */
}