3 ms·
> A random seed for a fixed known function only gives you a few bits of randomness. SipHash is a family of functions (a PRF), and requires a user-supplied 128-
by geofft 10y ago
> A random seed for a fixed known function only gives you a few bits of randomness.
SipHash is a family of functions (a PRF), and requires a user-supplied 128-bit random key to select a function in the PRF. Can you explain why you believe this "only gives you a few bits of randomness"? Why would it not give you 128 bits of randomness?
The kernel implementation here says that you're supposed to use get_random_bytes on a siphash_key_t (see the article posted), which gives you 128 bits of high-quality randomness.