diff options
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r-- | sql/item_func.cc | 4 |
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(¤t_thd->rand,tmp,tmp/2); + ulong tmp=((ulong) args[0]->val_int()); + randominit(¤t_thd->rand,tmp*0x10001L+55555555L,tmp*0x10000001L); #ifdef DELETE_ITEMS delete args[0]; #endif |