Software fallback for RDRAND/RDSEED

This commit is contained in:
Justin Becker committed 2026-09-16 16:08:40 -07:00
1 parent 9bbdb35711
commit c91c6efc87
12 files changed
+178 -36

No files matched your search

@@ -5125,7 +5125,7 @@ void OpDispatchBuilder::CRC32(OpcodeArgs) {
}
void OpDispatchBuilder::RDRANDOp(OpcodeArgs, bool Reseed) {
if (!CTX->HostFeatures.SupportsRAND) {
if (!CTX->HostFeatures.SupportsRAND && !CTX->SoftwareRNGEnabled()) {
UnimplementedOp(Op);
return;
}