Home
last modified time | relevance | path

Searched refs:randMax (Results 1 - 2 of 2) sorted by relevance

/third_party/alsa-utils/speaker-test/
H A Dst2095.c42 st2095->randMax = st2095->samplesPerPeriod - 1; in initialize_st2095_noise()
44 st2095->scaleFactor = 2.0 / (float)st2095->randMax; in initialize_st2095_noise()
115 // Generate a pseudorandom integer in the range 0 <= seed <= randMax. in generate_st2095_noise_sample()
116 //# Bitwise AND with randMax zeroes out any unwanted high order bits. in generate_st2095_noise_sample()
117 st2095->seed = (1664525 * st2095->seed + st2095->randStep) & st2095->randMax; in generate_st2095_noise_sample()
H A Dst2095.h10 int randMax; member

Completed in 1 milliseconds