note 50775 deleted from function.rand by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: Sam Fullman 

----

Quick simple way to generate a random n-length key with this function:

function create_key($len){
    for($i=1;$i<=$len;$i++)$str.=base_convert( rand(0,15),10,16);
    return $str;
}
echo create_key(32);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.