advanced code snippet search
AzizLight on 09/24/09
php random hash
10/22/09 09:24am09/24/09 06:55pm
1 person have marked this snippet as a favorite
silentbob84
$seed = 'JvKnrQWPsThuJteNQAuH';$hash = sha1(uniqid($seed . mt_rand(), true)); # To get a shorter version of the hash, just use substr$hash = substr($hash, 0, 10);
Report this snippet Tweet
Comment:
You need to login to post a comment.