&gt; Although, IMHO, code with a reference to block scope uninitialized variable shouldn&#x27;t even compile.<p>Funny story, that is actually what caused Debian&#x27;s weak keys fiasco. The code was using uninitialised memory to seed the PRNG and someone removed it because of valgrind warnings. So sometimes UB is exactly what you want. :P