4 Jan
2010
4 Jan
'10
6:31 p.m.
#At lp:maria based on revid:monty@askmonty.org-20100104182529-kf2o1tisifggs2vg 2789 Michael Widenius 2010-01-04 Fixed bug in my_uuid() that caused failures on hpux and ia64 modified: mysys/my_uuid.c === modified file 'mysys/my_uuid.c' --- a/mysys/my_uuid.c 2009-02-01 12:02:29 +0000 +++ b/mysys/my_uuid.c 2010-01-04 18:31:26 +0000 @@ -108,7 +108,7 @@ void my_uuid_init(ulong seed1, ulong see */ /* purecov: begin inspected */ my_rnd_init(&uuid_rand, (ulong) (seed2+ now/2), (ulong) (now+rand())); - for (i=0; i < sizeof(mac); i++) + for (i=0; i < array_elements(uuid_suffix) -2 ; i++) mac[i]= (uchar)(my_rnd(&uuid_rand)*255); /* purecov: end */ }