[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: UUIDGenerator broken on Windows...

timfox do-not-reply at jboss.com
Wed Feb 4 04:06:03 EST 2009


"jmesnil" wrote : in UUIDGenerator.generateTimeBasedUUID, we use only the 1st 4 bytes of the address so that it works with IPv4 (4 bytes), IPv4 (16 bytes) and MAC (6 bytes).

I don't think that will work. If you truncate the address we'll lose uniqueness.

It needs to be a ipv4 address or nothing, since that is the only thing that fits in 4 bytes.

MAC and IPv6 address is useless for this algorithm since they are too big.

If we can't get an ipv4 address we should just use a random.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206829#4206829

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206829



More information about the jboss-dev-forums mailing list