mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
another fix for RAND() initialization
This commit is contained in:
parent
9dd13a9a4a
commit
5137c07ace
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ THD::THD():user_time(0),fatal_error(0),last_insert_id_used(0),
|
|||
*/
|
||||
{
|
||||
pthread_mutex_lock(&LOCK_thread_count);
|
||||
ulong tmp=(ulong) (rnd(&sql_rand) * ((ulong)~0L));
|
||||
ulong tmp=(ulong) (rnd(&sql_rand) * ((ulong)0xffffffff));
|
||||
randominit(&rand, tmp + (ulong) start_time,
|
||||
tmp + (ulong) thread_id);
|
||||
pthread_mutex_unlock(&LOCK_thread_count);
|
||||
|
|
Loading…
Reference in a new issue