Use openssl's RAND_load_file() and RAND_bytes() to get randomness.