~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2009-02-08 11:11:30 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mordred@inaugust.com-20090208111130-futpwptxv5he3boe
Renamed non-prefixed things from libdrizzleclient to drizzleclient.

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