~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/math/rand.cc

  • Committer: Brian Aker
  • Date: 2009-02-26 05:21:02 UTC
  • mfrom: (896.1.5 fix-osxs)
  • Revision ID: brian@intel-mini-2.local-20090226052102-8xtbjt8kph6mi0qx
Merge from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    TODO: do not do reinit 'rand' for every execute of PS/SP if
30
30
    args[0] is a constant.
31
31
  */
32
 
  uint32_t tmp= (uint32_t) arg->val_int();
33
 
  drizzleclient_drizzleclient_randominit(rand, (uint32_t) (tmp*0x10001L+55555555L),
34
 
             (uint32_t) (tmp*0x10000001L));
 
32
  uint64_t tmp= (uint64_t) arg->val_int();
 
33
  drizzleclient_randominit(rand, (tmp*0x10001L+55555555L),
 
34
                           (tmp*0x10000001L));
35
35
}
36
36
 
37
37
bool Item_func_rand::fix_fields(Session *session,Item **ref)