diff options
author | Jack Lloyd <[email protected]> | 2016-11-03 12:37:45 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-03 12:37:45 -0400 |
commit | e42d1513fd6f80dcd2ae4109fddf53b61e935116 (patch) | |
tree | 014a3b59a1578fa527068ca0dffd587a576ac105 /src/lib/entropy | |
parent | 806a2d4e415fcabcd40ac7791cafc03be5a89501 (diff) |
Remove unused values from build.h
Have the /proc setting in build.h actually control the entropy source
configuration (!)
GH #708
Diffstat (limited to 'src/lib/entropy')
-rw-r--r-- | src/lib/entropy/entropy_srcs.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/entropy/entropy_srcs.cpp b/src/lib/entropy/entropy_srcs.cpp index 21dfcff41..125d51b1f 100644 --- a/src/lib/entropy/entropy_srcs.cpp +++ b/src/lib/entropy/entropy_srcs.cpp @@ -96,7 +96,9 @@ std::unique_ptr<Entropy_Source> Entropy_Source::create(const std::string& name) if(name == "proc_walk") { #if defined(BOTAN_HAS_ENTROPY_SRC_PROC_WALKER) - return std::unique_ptr<Entropy_Source>(new ProcWalking_EntropySource("/proc")); + const std::string root_dir = BOTAN_ENTROPY_PROC_FS_PATH; + if(!path.empty()) + return std::unique_ptr<Entropy_Source>(new ProcWalking_EntropySource(root_dir)); #endif } |