The latter uses the 8th and 3rd digit from the right as checksums in this case.my $uniqueId = time()*10000 + int rand (10000); $uniqueId = $uniqueId*100 + ( ( ( $uniqueId div 10000000) % 10 ) * ( ( $uniqueId div 100 ) % 10 ) );
In reply to Re: Random, Unique, but Simple session ID
by Masem
in thread Random, Unique, but Simple session ID
by akm2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |