diff options
Diffstat (limited to 'src/lib/entropy/entropy_srcs.cpp')
-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 } |