aboutsummaryrefslogtreecommitdiff
path: root/include/linux/etherdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/etherdevice.h')
-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) */
}