summaryrefslogtreecommitdiffstats
path: root/sys/ofed/include/linux/etherdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ofed/include/linux/etherdevice.h')
-rw-r--r--sys/ofed/include/linux/etherdevice.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ofed/include/linux/etherdevice.h b/sys/ofed/include/linux/etherdevice.h
index a975bd0..ca8aef7 100644
--- a/sys/ofed/include/linux/etherdevice.h
+++ b/sys/ofed/include/linux/etherdevice.h
@@ -137,7 +137,8 @@ eth_broadcast_addr(u8 *pa)
static inline void
random_ether_addr(u8 * dst)
{
- read_random(dst, 6);
+ if (read_random(dst, 6) == 0)
+ arc4rand(dst, 6, 0);
dst[0] &= 0xfe;
dst[0] |= 0x02;
OpenPOWER on IntegriCloud