Chris Snyder wrote:

Doing something like $random = $microtime . "_" . rand( 0, 256 );
gives you non-repeating pseudo-randomness.
md5(uniqid(rand(), true))
// as suggested in the manual

is harder to guess -- but now you're talkin' 32 chars.
(as usual it depends on what you're tryin' to do)

--
T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/show_participation.php

Reply via email to