pwd->reset_block_lengths = true;
if (pwd->use_noise_coding) {
+ unsigned int seed = 1;
+ float norm;
/* init the noise generator */
if (pwd->ahi.use_exp_vlc)
pwd->noise_mult = 0.02;
else
pwd->noise_mult = 0.04;
-
- {
- unsigned int seed;
- float norm;
- seed = 1;
- norm = (1.0 / (float) (1LL << 31)) * sqrt(3) * pwd->noise_mult;
- for (i = 0; i < NOISE_TAB_SIZE; i++) {
- seed = seed * 314159 + 1;
- pwd->noise_table[i] = (float) ((int) seed) * norm;
- }
+ norm = (1.0 / (float)(1LL << 31)) * sqrt(3) * pwd->noise_mult;
+ for (i = 0; i < NOISE_TAB_SIZE; i++) {
+ seed = seed * 314159 + 1;
+ pwd->noise_table[i] = (float)((int)seed) * norm;
}
}