Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/ixgbe Use cprng_strong64() insread of cprng_fast...
details: https://anonhg.NetBSD.org/src/rev/028909006876
branches: trunk
changeset: 356238:028909006876
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Sep 11 09:52:13 2017 +0000
description:
Use cprng_strong64() insread of cprng_fast64() to prevent panic.
diffstat:
sys/dev/pci/ixgbe/ixv.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 5e1b36c3def0 -r 028909006876 sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c Mon Sep 11 09:21:56 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c Mon Sep 11 09:52:13 2017 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.58 2017/08/30 08:49:18 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.59 2017/09/11 09:52:13 msaitoh Exp $*/
/******************************************************************************
@@ -418,7 +418,7 @@
/* If no mac address was assigned, make a random one */
if (!ixv_check_ether_addr(hw->mac.addr)) {
u8 addr[ETHER_ADDR_LEN];
- uint64_t rndval = cprng_fast64();
+ uint64_t rndval = cprng_strong64();
memcpy(addr, &rndval, sizeof(addr));
addr[0] &= 0xFE;
Home |
Main Index |
Thread Index |
Old Index