Module Name:    src
Committed By:   msaitoh
Date:           Mon Sep 11 09:52:13 UTC 2017

Modified Files:
        src/sys/dev/pci/ixgbe: ixv.c

Log Message:
 Use cprng_strong64() insread of cprng_fast64() to prevent panic.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/dev/pci/ixgbe/ixv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/ixgbe/ixv.c
diff -u src/sys/dev/pci/ixgbe/ixv.c:1.58 src/sys/dev/pci/ixgbe/ixv.c:1.59
--- src/sys/dev/pci/ixgbe/ixv.c:1.58	Wed Aug 30 08:49:18 2017
+++ src/sys/dev/pci/ixgbe/ixv.c	Mon Sep 11 09:52:13 2017
@@ -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 @@ ixv_attach(device_t parent, device_t dev
 	/* 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;

Reply via email to