HomeFreeBSD

pf: Don't convert arc4random() to host byte order

Description

pf: Don't convert arc4random() to host byte order

There's no need to convert values returned by arc4random to the network
byte order. Spotted by Gleb Smirnoff (glebius@FreeBSD.org), thanks!

ok tedu

Obtained from: OpenBSD, mikeb <mikeb@openbsd.org>, 367b0410d3
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Apr 15 2025, 3:29 PM
Parents
rG162dfe766b2a: pfctl: Remove NULL-checks before free(). ok tb@
Branches
Unknown
Tags
Unknown