Entropy Extractor Used in μRNG

Last time, I mentioned μRNG, a true random number generator (TRNG) that takes physical sources of randomness as input. These sources are independent but non-uniform. This post will present the entropy extractor μRNG uses to take non-uniform bits as input and produce uniform bits as output.

We will present Python code for playing with the entropy extractor. (μRNG is extremely efficient, but the Python code here is not; it's just for illustration.) The code will show how to use the pyfinite library to do arithmetic over a finite field.