Gerando string aleatória no php usando a função Random_bytes (). (Criptograficamente seguro)
<?php
$n = 20;
$result = bin2hex(random_bytes($n));
echo "Hello from Softhunt.net";
echo $result;
?>
Outrageous Ostrich