OC_Util::generate_random_bytes was camelCased in master
check function existence instead of branching away for stable5