From: Lutz Jaenicke <[EMAIL PROTECTED]> Lutz.Jaenicke> I don't know how select() would act on a regular Lutz.Jaenicke> file. /dev/random (and/or /dev/urandom) are no regular Lutz.Jaenicke> files, so we could first call stat() and only continue Lutz.Jaenicke> when S_ISCHR() is true (character device). This made me think that the next step would perhaps be to have RAND_load_file() be a little more selective on how much it should really try to read for files others than regular files. S_ISREG() is the perfect tool to differ between the two. For regular files, it would read until EOF, for all others, it would read only, say, a couple of blocks or something (perhaps the value used before we started going to EOF?), perhaps using the same select() mechanism as is now in the Unixly RAND_poll(). Comment? Hoorays? Boooh? -- Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED] Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47 Redakteur@Stacken \ SWEDEN \ or +46-709-50 36 10 Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Software Engineer, Celo Communications: http://www.celocom.com/ Unsolicited commercial email is subject to an archival fee of $400. See <http://www.stacken.kth.se/~levitte/mail/> for more info. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Random seed and possible blocking of /dev/random
Richard Levitte - VMS Whacker Mon, 08 Jan 2001 08:09:45 -0800
- Random seed and possible blocking of /dev/ra... Richard Levitte - VMS Whacker
- Re: Random seed and possible blocking o... Lutz Jaenicke
- Re: Random seed and possible blocki... Richard Levitte - VMS Whacker
- Re: Random seed and possible blocking o... Richard Levitte - VMS Whacker
- Re: Random seed and possible blocking o... Claus Assmann
- Re: Random seed and possible blocki... Richard Levitte - VMS Whacker
- Re: Random seed and possible blocki... Michael Str�der
- Re: Random seed and possible blocking o... Lutz Jaenicke
- Re: Random seed and possible blocki... Richard Levitte - VMS Whacker
- Re: Random seed and possible blocking o... Richard Levitte - VMS Whacker
- Re: Random seed and possible blocki... Michael Str�der
- Re: Random seed and possible blocki... Bodo Moeller
- Re: Random seed and possible blocking o... robert bonomi
