Skip to content

Instantly share code, notes, and snippets.

@danrovito
Created October 23, 2015 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danrovito/4bfe28db8c37c177e854 to your computer and use it in GitHub Desktop.
Save danrovito/4bfe28db8c37c177e854 to your computer and use it in GitHub Desktop.
<?php
$code = strtolower(substr(base64_encode(sha1(mt_rand())), 0, 32));
return print $code
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment