This patch isn't needed in the end. An equivalent patch is needed on xtensa, powerpc, arc, mips, arm32, arm64, riscv. That's a bit much and points to a larger issue. So I'll fix this the ugly way in the random.c code :(. Jason