Page MenuHomeFreeBSD

Use arc4rand() instead of read_random()
ClosedPublic

Authored by tuexen on Aug 23 2018, 7:31 AM.
Tags
None
Referenced Files
F174833948: D16860.diff
Tue, Oct 6, 8:32 AM
Unknown Object (File)
Thu, Oct 1, 2:05 AM
Unknown Object (File)
Sep 1 2026, 4:20 PM
Unknown Object (File)
Aug 30 2026, 12:47 AM
Unknown Object (File)
Aug 26 2026, 1:18 AM
Unknown Object (File)
Aug 9 2026, 6:21 PM
Unknown Object (File)
Aug 9 2026, 3:34 PM
Unknown Object (File)
Aug 9 2026, 2:39 PM
Subscribers

Details

Summary

jmg@ has suggested to use arc4rand() instead of read_random() as indicated by the man read_random.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jmg added reviewers: gordon, delphij.

IMO, looks good to me.

Added our SO as well.

Add secteam instead of just me.

LGTM.

It seems that the other read_random instances in network stack should do the same as well (probably beyond scope of this changeset though).

This revision is now accepted and ready to land.Aug 23 2018, 6:16 PM
This revision was automatically updated to reflect the committed changes.