in fbpcf/system/CpuUtil.cpp [31:48]
bool isDrngSupported() {
bool rdrandSupported = false;
bool rdseedSupported = false;
if (isIntelCpu()) {
auto info = getCpuId(1);
if ((info.ecx & 0x40000000) == 0x40000000) {
rdrandSupported = true;
}
info = getCpuId(7);
if ((info.ebx & 0x40000) == 0x40000) {
rdseedSupported = true;
}
}
return rdrandSupported && rdseedSupported;
}