~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-08 12:39:10 UTC
  • mfrom: (840.1.21 devel)
  • Revision ID: brian@tangent.org-20090208123910-gaodow8xvkw9ed4l
Merging Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    args[0] is a constant.
31
31
  */
32
32
  uint32_t tmp= (uint32_t) arg->val_int();
33
 
  randominit(rand, (uint32_t) (tmp*0x10001L+55555555L),
 
33
  drizzleclient_drizzleclient_randominit(rand, (uint32_t) (tmp*0x10001L+55555555L),
34
34
             (uint32_t) (tmp*0x10000001L));
35
35
}
36
36
 
71
71
  assert(fixed == 1);
72
72
  if (arg_count && !args[0]->const_item())
73
73
    seed_random (args[0]);
74
 
  return my_rnd(rand);
 
74
  return drizzleclient_my_rnd(rand);
75
75
}
76
76