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