in reply to Randomizing Unique ID?

Considering the fact of me being lazy, I'd do something like this (just to save typing space):
use Digest::MD5 qw(md5_hex); use Time::HiRes qw(time); my $id = md5_hex time();

-- ar0n | Just Another Perl Joe

Replies are listed 'Best First'.
RE: Re: Randomizing Unique ID?
by jettero (Monsignor) on Aug 09, 2000 at 16:49 UTC

    In practice, I prepend a string ($msg = "vcmi$msg") before I encrypt. Then, when I'm given one of my unique id's back I can verify that it hasn't been fake'd by decrypting it and checking for the /vcmi/ at the beginning.

    Anyhoo, that's why I use'd blowfish.