aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy/entropy_srcs.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-03 12:37:45 -0400
committerJack Lloyd <[email protected]>2016-11-03 12:37:45 -0400
commite42d1513fd6f80dcd2ae4109fddf53b61e935116 (patch)
tree014a3b59a1578fa527068ca0dffd587a576ac105 /src/lib/entropy/entropy_srcs.cpp
parent806a2d4e415fcabcd40ac7791cafc03be5a89501 (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/entropy_srcs.cpp')
-rw-r--r--src/lib/entropy/entropy_srcs.cpp4
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
}