aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-07-18 20:22:56 +0000
committerlloyd <[email protected]>2012-07-18 20:22:56 +0000
commit360e97936a3cd410a13aaddbf810fa4647588163 (patch)
treec29b2b723b0d67fbcbc44ba006d58b8d923648b3 /src
parente47064038867641fea7b1fe97d62cbe89749afc8 (diff)
Move EGD to the end of the priority list for entropy sources, as it
really is quite rare at this point given that all modern Unices have a /dev/random.
Diffstat (limited to 'src')
-rw-r--r--src/libstate/global_rng.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstate/global_rng.cpp b/src/libstate/global_rng.cpp
index 65da38f5f..e460199c5 100644
--- a/src/libstate/global_rng.cpp
+++ b/src/libstate/global_rng.cpp
@@ -80,12 +80,6 @@ void add_entropy_sources(RandomNumberGenerator* rng)
);
#endif
-#if defined(BOTAN_HAS_ENTROPY_SRC_EGD)
- rng->add_entropy_source(
- new EGD_EntropySource(split_on("/var/run/egd-pool:/dev/egd-pool", ':'))
- );
-#endif
-
#if defined(BOTAN_HAS_ENTROPY_SRC_CAPI)
rng->add_entropy_source(new Win32_CAPI_EntropySource);
#endif
@@ -107,6 +101,12 @@ void add_entropy_sources(RandomNumberGenerator* rng)
new Unix_EntropySource(split_on("/bin:/sbin:/usr/bin:/usr/sbin", ':'))
);
#endif
+
+#if defined(BOTAN_HAS_ENTROPY_SRC_EGD)
+ rng->add_entropy_source(
+ new EGD_EntropySource(split_on("/var/run/egd-pool:/dev/egd-pool", ':'))
+ );
+#endif
}
class Serialized_PRNG : public RandomNumberGenerator