echo random_bytes($length);
$str=random_bytes(7); echo bin2hex($str);
fc9cfb65c469de
Post your comments , suggestion , error , requirements etc here