Commit ce068186 authored by Michael Widenius's avatar Michael Widenius

Fixed bug in my_uuid() that caused failures on hpux and ia64

parent fa609710
...@@ -108,7 +108,7 @@ void my_uuid_init(ulong seed1, ulong seed2) ...@@ -108,7 +108,7 @@ void my_uuid_init(ulong seed1, ulong seed2)
*/ */
/* purecov: begin inspected */ /* purecov: begin inspected */
my_rnd_init(&uuid_rand, (ulong) (seed2+ now/2), (ulong) (now+rand())); 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); mac[i]= (uchar)(my_rnd(&uuid_rand)*255);
/* purecov: end */ /* purecov: end */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment