yao: Corrected error detection for rng.