Currently using this (within PHP) to generate unique (hopefully) userids:
private function __generateuserid()
$seed = rand(1000000, DEF_GENERATE_MAX_VAL_FOR_ID);
$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);
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.