Tutorialspoint

PHP7 Random Bytes

<?php
   $bytes = random_bytes(5);
   print(bin2hex($bytes));
?>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.