~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/password.c

  • Committer: Brian Aker
  • Date: 2008-08-07 16:29:49 UTC
  • mfrom: (264.1.20 codestyle)
  • Revision ID: brian@tangent.org-20080807162949-7o8eyjgdn8ms3n1a
Merge from Monty.

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
 
  memset((char*) rand_st, 0, sizeof(*rand_st));      /* Avoid UMC varnings */
 
80
  memset(rand_st, 0, sizeof(*rand_st));      /* Avoid UMC varnings */
81
81
  rand_st->max_value= 0x3FFFFFFFL;
82
82
  rand_st->max_value_dbl=(double) rand_st->max_value;
83
83
  rand_st->seed1=seed1%rand_st->max_value ;