JoakimSoderberg / libws

A multiplatform C websocket client library
MIT License
11 stars 10 forks source link

Can use evutil_secure_rng_get_bytes() instead of reading /dev/urandom #2

Open snej opened 7 years ago

snej commented 7 years ago

libws directly opens a file handle on /dev/urandom to generate random numbers. It would be a lot simpler (and would conserve file handles) to call the libevent function evutil_secure_rng_get_bytes instead.