@bascule It's just an interface to the same thing. Do you just don't like the idea of getting randomness over an fd?
-
-
-
@evanphx there's the problems of error handling when you're out of file descriptors and thread safety issues if sharing an fd... -
@bascule Oh totally. Does getrandom(2) solve the fork/thread issue though? I didn't think so.. -
@evanphx one would hope it's thread safe if it's a system call -
@bascule True true. Though, whats the issue of fd reusing across threads? They couldn't both get the same data anyway. -
@evanphx setting up the fd to begin with. You either need an eager init function or thread-safe lazy init, otherwise you leak fds -
@bascule Though your point is likely that getting randomness as a library func (openssl) implies some hidden, global fd. -
@evanphx or thread-specific PRNGs, if you get them seeded properly, and handle things like forking :| - 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.