summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-11-18 14:13:09 +0200
committermonty@hundin.mysql.fi <>2001-11-18 14:13:09 +0200
commitc76c42066e27c342b06efe1c6151296fcd5e8247 (patch)
treeac61eb5749e9c9b5338d01ad102f492ed0891c44 /sql/item_func.cc
parent7a45e7f2667141e5dff5570299f8ed13fbc40b9d (diff)
downloadmariadb-git-c76c42066e27c342b06efe1c6151296fcd5e8247.tar.gz
Test of optimize table.
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index 1ca511be485..6657d860592 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -621,8 +621,8 @@ double Item_func_rand::val()
{
if (arg_count)
{ // Only use argument once in query
- ulong tmp=((ulong) args[0]->val_int())+55555555L;
- randominit(&current_thd->rand,tmp,tmp/2);
+ ulong tmp=((ulong) args[0]->val_int());
+ randominit(&current_thd->rand,tmp*0x10001L+55555555L,tmp*0x10000001L);
#ifdef DELETE_ITEMS
delete args[0];
#endif