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/6f792d41b9f6
branches:  trunk
changeset: 826539:6f792d41b9f6
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 b8a147933c0c -r 6f792d41b9f6 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