~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2009-04-05 19:53:29 UTC
  • mfrom: (971.3.11 eday-dev)
  • Revision ID: brian@tangent.org-20090405195329-k2vpiwhlri9oaedq
MergeĀ fromĀ Eric.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
class Item_func_rand :public Item_real_func
27
27
{
28
 
  struct rand_struct *rand;
 
28
  uint64_t seed1;
 
29
  uint64_t seed2;
 
30
  uint64_t max_value;
 
31
  double max_value_dbl;
 
32
  void _seed_random_int(uint64_t new_seed1, uint64_t new_seed2);
 
33
 
29
34
public:
30
 
  Item_func_rand(Item *a) :Item_real_func(a), rand(0) {}
 
35
  Item_func_rand(Item *a) :Item_real_func(a) {}
31
36
  Item_func_rand()        :Item_real_func() {}
32
37
  double val_real();
33
38
  const char *func_name() const { return "rand"; }