Use /dev/urandom to avoid blocking completely.
Fix localhost/client.ml.
Use urandom as well when generating keys.
localhost server working with (patched) cohttp.