> Hi,
> 
> after finding another leaking FILE*, can anybody who knows the code tell 
> me why /dev/urandom is not closed after the rndnum is generated? After 

This is not a mistake - there's a static FILE* handler for that (for performance
reasons).

> first look I suspect that the writer thought that /dev/urandom always 
> returns the same "random" data after being opened, but quick tests and 
> googling I found nothing that proves this assumption...

This assumption is false ;))

Best regards,
Tomasz Kojm
-- 
      oo    .....       [EMAIL PROTECTED]
     (\/)\.........     http://www.konarski.edu.pl/~zolw
        \..........._   I nie zapomnij kliknac w brzuszek... 
          //\   /\\     <- C. Amboinensis    www.pajacyk.pl        


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel

Reply via email to