summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-11-18 14:13:09 +0200
committerunknown <monty@hundin.mysql.fi>2001-11-18 14:13:09 +0200
commit21259d25f3e76801631dbde560a6da5a65aa00f3 (patch)
treeac61eb5749e9c9b5338d01ad102f492ed0891c44 /sql/item_func.cc
parent30052a4901705efb493829b366e7693cfa42cc90 (diff)
downloadmariadb-git-21259d25f3e76801631dbde560a6da5a65aa00f3.tar.gz
Test of optimize table.
Docs/manual.texi: Updated changelog. Update info about MERGE tables. Moved section 'Why so many open tables' mysql-test/r/create.result: Added test of types in CREATE mysql-test/t/create.test: Added test of types in CREATE sql/item_func.cc: More different values for RAND(nr) and RAND(nr+1)
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