in reply to Random, Unique, but Simple session ID
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 ) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Random, Unique, but Simple session ID
by Fastolfe (Vicar) on Apr 13, 2001 at 23:24 UTC |