Hello Till,
Currently using this (within PHP) to generate unique (hopefully) userids:
Quote:
private function __generateuserid()
{
srand((double)microtime()*1000000);
$seed = rand(1000000, DEF_GENERATE_MAX_VAL_FOR_ID);
srand((double)microtime()*$seed);
$yadda = rand (1, DEF_GENERATE_MAX_VAL_FOR_ID );
$yadda = str_pad(rand(1, DEF_GENERATE_MAX_VAL_FOR_ID),
strlen(DEF_GENERATE_MAX_VAL_FOR_ID), "0", STR_PAD_LEFT);
return $yadda;
}
|
Also, from what I have seen, the client name used seems to use lower cased letters. Which is OK unless one is expecting uppercase.
Thanks for the pointer.
Recent comments
12 hours 33 min ago
17 hours 38 min ago
22 hours 2 min ago
23 hours 51 min ago
1 day 14 hours ago
1 day 14 hours ago
1 day 19 hours ago
2 days 1 hour ago
2 days 2 hours ago
2 days 3 hours ago