ToBase62 just converts an int to base62 representation(A-Z,a-z,0-9).
Do I need to worry about different length pids?
Thanks
sub generate_id { my $id = $ToBase62->(time) . $ToBase62->($$) . ToBase62->( rand($$ +) ); return $id; }
In reply to unique cookie id? by rkg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |