Re: [PATCH] rand.c updates from FreeBSD RELENG_5

看板DFBSD_submit作者時間21年前 (2004/05/13 13:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/18 (看更多)
On 2004-05-12, Matthew Dillon <dillon@apollo.backplane.com> wrote: > I have one comment, and that is that the use of /dev/random has > created lots of unexpected problems in FreeBSD which they have > hacked around. What problems? I did a grep for /dev/random on 4.x and only came up with a couple of uses in contrib/. > I think we should simply use /dev/urandom here, > which is guarenteed not to block and will certainly produce a > random enough seed for rand's tiny little seed. /dev/random is non-blocking in FreeBSD 5.x since it uses a different, non-blocking algorithm. Kris
文章代碼(AID): #10em4M00 (DFBSD_submit)
討論串 (同標題文章)
文章代碼(AID): #10em4M00 (DFBSD_submit)