mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
Fixed bug in my_uuid() that caused failures on hpux and ia64
This commit is contained in:
parent
fa60971037
commit
ce068186f6
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ void my_uuid_init(ulong seed1, ulong seed2)
|
|||
*/
|
||||
/* 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 */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue