Mantis - Squeak
Viewing Issue Advanced Details
3589 Network minor always 05-10-06 02:25 07-14-06 16:30
Tom Koenig  
cdegroot  
normal  
closed 3.9  
fixed  
none    
none 3.9  
0003589: [BUG][FIX] UUIDPrimitivesTest>>testCreationRandom
UUIDPrimitivesTest>>testCreationRandom fails on this assertion
 self should: [((UUID new at: 7) bitAnd: 16rF0) = 16r40].
As John McIntosh recommends this test is deleted since in no longer applies.
my email to John M MacIntosh
I think you created UUID and its test case UUIDPrimitivesTest? Do you have time to help resolve the problem?

UUIDPrimitivesTest>>testCreationRandom fails on this assertion
 self should: [((UUID new at: 7) bitAnd: 16rF0) = 16r40]. Here's what I can tell you: -The failure occurs in 3.9b 7029 and in 3.8 6665 -I'm testing on win xp -the assertion appears to fail the very first time (it's in a repeats 1000)
and his response
You see originally the type of UUID generated by the operating system
would have the last twelve bytes the same since that was the bits
from the ethernet interface card. The testCreationRandom checks to
see if those bytes are the same, if not then it assumes the UUID is a
randomly generated UUID and then does a simple pass to see if there
are any duplicates in a short sequence and checks flags to see if
this is a random UUID, that as you noticed fails.

So why.

Ah, well because someone noticed that if you were tagging things with
UUIDs, a thing that I believe Microsoft office does? Then why it's
possible to determine which Windows computer generated that UUID, or
at least which ethernet card was in use at the time of editing. Since
that was a privacy concern Microsoft changed the algorithm to one-way
(right, I"m sure) hash the entire UUID.

Therefore the testCreationRandom test likely should be deleted unless
we are using the UUIDGenerator because the UUID has been hashed and
none of the should:[] are valid.

 UUIDPrimitivesTest.tlk.1.cs.gz [^] (151 bytes) 05-10-06 02:25

Notes
(0005901)
MarcusDenker   
07-14-06 16:30   
7044