mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +03: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:
@@ -740,8 +740,7 @@ forcedeth_open ( struct net_device *netdev )
|
|||||||
ioaddr + NvRegReceiverStatus );
|
ioaddr + NvRegReceiverStatus );
|
||||||
|
|
||||||
/* Set up slot time */
|
/* Set up slot time */
|
||||||
get_random_bytes ( &low, sizeof(low) );
|
low = ( random() & NVREG_SLOTTIME_MASK );
|
||||||
low &= NVREG_SLOTTIME_MASK;
|
|
||||||
writel ( low | NVREG_SLOTTIME_DEFAULT, ioaddr + NvRegSlotTime );
|
writel ( low | NVREG_SLOTTIME_DEFAULT, ioaddr + NvRegSlotTime );
|
||||||
|
|
||||||
writel ( NVREG_TX_DEFERRAL_DEFAULT , ioaddr + NvRegTxDeferral );
|
writel ( NVREG_TX_DEFERRAL_DEFAULT , ioaddr + NvRegTxDeferral );
|
||||||
|
|||||||
Reference in New Issue
Block a user