Date: Tue, 17 Oct 1995 11:04:05 +1000 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, mark@grondar.za Cc: hackers@FreeBSD.org Subject: Re: Creating a /dev/random Message-ID: <199510170104.LAA16860@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> To avoid this, use the existing buffer `zbuf', which is freed correctly.
>> There is no need for another variable - local variables are per process.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> Perhaps `zbuf' should be renamed `buf'.
>I don't understand something here - what happens if the one process is
>reading both /dev/zero and /dev/random? will the two not then try to
>share buf/zbuf and screw up?
See above
>> is inelegant anyway. Perhaps there should be a zeroout() function to
>> optimize this important (;-) device.
>...or only c bytes should be zero'ed out?
Good idea.
Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510170104.LAA16860>
