[Bug 1149] Does not build on QNX

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Feb 15 22:43:39 EST 2006


http://bugzilla.mindrot.org/show_bug.cgi?id=1149





------- Comment #19 from dtucker at zip.com.au  2006-02-15 22:43 -------
(In reply to comment #18)
> (In reply to comment #17)
> > Most other platforms solve this kind of problem by saving the random seed on
> > shutdown and reseeding on startup.
> 
> Does sshd do this or does some other operating system service?

It's usually either the entropy collector service itself when shut down (eg
prngd) or the system shutdown scripts (eg most Linuxes will do something like
"dd if=/dev/urandom of=/some/file bs=512 count=1").

> If I were to
> write my own program to do so, would I use RAND_file_name, RAND_write_file,
> and RAND_read_file or should I seed the operating system's random number
> generator (assuming the RAND functions don't do so)?

For best effect should to use the OS's facilities since that would help all
users of the entropy source, but for users of OpenSSL (including OpenSSH) the
RAND_* functions mentioned above seem as if they would be adequate (although
I've not used them).

Whatever you do you should try not to reuse the same seedfile.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list