Random String





5
Date Submitted Fri. Oct. 21st, 2005 9:52 AM
Revision 1 of 1
Coder mattrmiller
Tags PHP | Random | String
Comments 1 comments
Random String
<?php   
        // Generates a code string
        function GenerateCodeString($strKey = "")
        {
                return strtoupper(sha1($strKey . mktime() * rand(1, 1000)));
        }
?>

Matthew R. Miller

www.bluecreststudios.com
=================
Matthew R. Miller

http://bluecreststudios.com
http://www.codeandcoffee.com

Comments

Comments Unnecessary complexity
Wed. Apr. 2nd, 2008 3:32 PM    Scripter sehrgut

Voting