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