rand/rand.c: Mix the pool key in `rand_gate' and `rand_stretch'.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 12 Dec 2019 19:12:26 +0000 (19:12 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 16 Dec 2019 17:13:12 +0000 (17:13 +0000)
commit3f078a9c1d674e911f8c4169930359d603ccd5fb
tree682aa82821d391ed3af6395fd2f6460f22ec5b52
parente06c916564213a19a0df27c1985b9875c85f8150
rand/rand.c: Mix the pool key in `rand_gate' and `rand_stretch'.

Back in commit d6fab4f6ae209afd6799a2974ce2849123965170, I rearranged
the cryptography to use plain SHA256 rather than RIPEMD160-HMAC for
determining the cipher key for churning the generator state.

I also managed to remove all the points at which the key actually
influences the behaviour of the generator!

This was four years ago, and I can't remember exactly why, but my guess
is that the key was previously inserted as part of `rmd160_macinit',
which was replaced by the unheyed `HASH_INIT' function.
rand/rand.c