random.c:22-31
The guard used #ifndef, which tests whether MICROPY_HW_ENABLE_RNG is defined, rather than whether its value is nonzero. We defined that macro as zero, so the #error did not stop the build.
https://blog.coinkite.com/entropy-technical-backgrounder/