Convert bn_rand.c to use EVP