~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/password.c

  • Committer: Brian Aker
  • Date: 2008-08-01 19:38:01 UTC
  • Revision ID: brian@tangent.org-20080801193801-ybcgw5ciozzzyyld
Cleanup around rand.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
 
78
78
void randominit(struct rand_struct *rand_st, uint32_t seed1, uint32_t seed2)
79
79
{                                               /* For mysql 3.21.# */
80
 
#ifdef HAVE_purify
81
80
  memset((char*) rand_st, 0, sizeof(*rand_st));      /* Avoid UMC varnings */
82
 
#endif
83
81
  rand_st->max_value= 0x3FFFFFFFL;
84
82
  rand_st->max_value_dbl=(double) rand_st->max_value;
85
83
  rand_st->seed1=seed1%rand_st->max_value ;