> Are we sure we need to add static text to the generated id? (I mean all
> the "testCase:", "_", etc?

No, I'm not sure. I guess I just wanted it there to check if the IDs were
really unique, and if not, why...So I'll take it out...


> 
> How confident are we that this leads to a unique id? I'm not sure. What
> happens if you're sending several requests on the same machine? The
> thread name is often the same.

Fair enough. 

> I don't know what the runtime hash is but
> I guess it will be same if you're inside the same JVM.

Yes, I thought of that while vaccuming. It also does not uniquely ID a JVM
(my intent).

> The client ip
> will be the same.

Yep. And to be fair, the most frequently encountered scenario involves one
client machine--not several.

> And the currentTimeMillis() will probably be the same
> for several requests generated at the same time.

Hmmmm, ok, I see your point.
> 
> Am I wrong? :-)

No. :(

> Maybe adding a random number would do the trick? Or using an existing
> unique id algorithm? There are several that exists on the web. I think
> there's even one in the JDK in some RMI-related class (can't remember
> right now).

I'll look for it when I get back to the code. Thanks for all the
suggestions!

Cheers,
Nick
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to