in reply to Re^6: Generate a unique ID
in thread Generate a unique ID

a 1 in 30 chance
That's just because your PRNG is only 15 bits:

$ perl -e 'printf "%.3f%", 2**15/1e4' 3.277%
With a decent PRNG, you'd have a much lower chance of collisions.

Replies are listed 'Best First'.
Re^8: Generate a unique ID
by BrowserUk (Patriarch) on Nov 17, 2010 at 15:42 UTC

    I know :) I did mention that in the post above.

    I also mentioned earlier in the thread, that its use inside a function called truly_random() inside Data::UUID (amongst other things) makes that module suspect.