nat: Use RAND_bytes instead of /dev/urandom

We don't need to consume all the entropy of the kernel but can
use libcrypto (OpenSSL) to generate random data. It is not clear
if we need to call RAND_load_file but I think we can assume that
our Unices have a /dev/urandom.

This takes less CPU time, provides good enough entropy (in theory)
and leaves some in the kernel entropy pool.
4 files changed
tree: e2e7e132ea1a0483c1b7bec4910aa4f99e1fd8e6
  1. debian/
  2. hlrsync/
  3. linux-kernel/
  4. openbsc/
  5. wireshark/
  6. .gitignore
  7. README