Convert rand_bytes_ex and rand_priv_bytes_ex to public functions