mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-22 21:39:57 +00:00
[forcedeth] Use standard random() function
It seems unlikely that a network card driver requires cryptographically secure random numbers. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
b63bcd73a0
commit
a0e559d1f3
@ -740,8 +740,7 @@ forcedeth_open ( struct net_device *netdev )
|
||||
ioaddr + NvRegReceiverStatus );
|
||||
|
||||
/* Set up slot time */
|
||||
get_random_bytes ( &low, sizeof(low) );
|
||||
low &= NVREG_SLOTTIME_MASK;
|
||||
low = ( random() & NVREG_SLOTTIME_MASK );
|
||||
writel ( low | NVREG_SLOTTIME_DEFAULT, ioaddr + NvRegSlotTime );
|
||||
|
||||
writel ( NVREG_TX_DEFERRAL_DEFAULT , ioaddr + NvRegTxDeferral );
|
||||
|
Loading…
x
Reference in New Issue
Block a user