We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d716621 + 19678c4 commit 35605b0Copy full SHA for 35605b0
1 file changed
src/platform/x86_pc/rand.cpp
@@ -24,13 +24,15 @@ void RNG::init()
24
{
25
if (CPUID::has_feature(CPUID::Feature::RDSEED)) {
26
rng_reseed_init(intel_rdseed, 2);
27
+ return;
28
}
29
else if (CPUID::has_feature(CPUID::Feature::RDRAND)) {
30
rng_reseed_init(intel_rdrand, 65);
- }
31
- else {
32
- rng_reseed_init(fallback_entropy, 64*16);
33
return;
34
+#ifndef PLATFORM_x86_solo5
+ rng_reseed_init(fallback_entropy, 64*16);
35
36
+#endif
37
assert(0 && "No randomness fallback");
38
0 commit comments