From e42d1513fd6f80dcd2ae4109fddf53b61e935116 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 3 Nov 2016 12:37:45 -0400 Subject: Remove unused values from build.h Have the /proc setting in build.h actually control the entropy source configuration (!) GH #708 --- src/lib/entropy/entropy_srcs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/entropy') 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::create(const std::string& name) if(name == "proc_walk") { #if defined(BOTAN_HAS_ENTROPY_SRC_PROC_WALKER) - return std::unique_ptr(new ProcWalking_EntropySource("/proc")); + const std::string root_dir = BOTAN_ENTROPY_PROC_FS_PATH; + if(!path.empty()) + return std::unique_ptr(new ProcWalking_EntropySource(root_dir)); #endif } -- cgit v1.2.3