mirleft/ocaml-tls — pull request #107 by pqwy (2014-06-05 17:07:35+00:00)
Title: Random seed

Semi-solve.

As the comment states, a proper solution is to keep on reseeding as we go, using various entropy sources. Tried that previously and it didn't end up looking nice, will have to revisit.

Seed using 16 bytes from system's non-blocking rng for now. Discounting entropy pool compromise during runtime and arguments against system's rng quality, it's a pretty strong random stream nonetheless.