Bill Sommerfeld wrote:
>On Thu, 2007-10-18 at 08:35 -0700, Hai-May Chao wrote:
>>      rnd_generate_pseudo_bytes() uses this 20-byte key to generate
>>      5120 bytes (maximum) random numbers using its own HASH
>>      algorithm and stores them in the rm_buffer[] (per CPU struct)
>>      in order to satisfy the caller's current request and subsequent
>>      requests.
>
>where did the "5120" parameter come from?
>
>Currently we generate a much larger number of pseudo-random bytes per
>"key" before going back to the well for another key.
>

Thank you for pointing this out. We generate a much larger number of
bytes (using the caller's buffer) when the caller's request is bigger
than "rndmag_threshold". Otherwise, we use per CPU's internal buffer.

Thanks,
Hai-May


Reply via email to