| 80 | */ |
| 81 | |
| 82 | void randominit(struct rand_struct *rand_st, ulong seed1, ulong seed2) |
| 83 | { /* For mysql 3.21.# */ |
| 84 | #ifdef HAVE_purify |
| 85 | memset(rand_st, 0, sizeof(*rand_st)); /* Avoid UMC varnings */ |
| 86 | #endif |
| 87 | rand_st->max_value= 0x3FFFFFFFL; |
| 88 | rand_st->max_value_dbl=(double) rand_st->max_value; |
| 89 | rand_st->seed1=seed1%rand_st->max_value ; |
| 90 | rand_st->seed2=seed2%rand_st->max_value; |
| 91 | } |
| 92 | |
| 93 | /* |
| 94 | Generate binary hash from raw text string |
no outgoing calls
no test coverage detected