diff options
author | peter@mysql.com <> | 2003-01-28 20:33:47 +0300 |
---|---|---|
committer | peter@mysql.com <> | 2003-01-28 20:33:47 +0300 |
commit | 682cca2e75687a307f65b47abe2553adbe98cf95 (patch) | |
tree | 29327b0b2f7800e90951b7be5d76a5584ca1e668 /sql/sql_class.cc | |
parent | 279f43a198d890689b3343ad6618b9340bdf0b64 (diff) | |
download | mariadb-git-682cca2e75687a307f65b47abe2553adbe98cf95.tar.gz |
Fix predicted first rand() call
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 5f73c6fa64e..727807415da 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -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) * 3000000); + ulong tmp=(ulong) (rnd(&sql_rand) * 0xffffffff); /* make all bits random */ pthread_mutex_unlock(&LOCK_thread_count); randominit(&rand, tmp + (ulong) &rand, tmp + (ulong) ::query_id); } |