Fix insecure CHAP authentication by replacing predictable rand() with kernel random number generator.