From 2b087e3c50429286b6677aba6c83f74bfa600c2b Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Sun, 22 Feb 2009 23:43:38 +0000 Subject: [PATCH] Apply patch for FreeBSD. Fixes #2027 [SVN r51400] --- random_device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/random_device.cpp b/random_device.cpp index 21c6ae8..660172f 100644 --- a/random_device.cpp +++ b/random_device.cpp @@ -22,7 +22,7 @@ const boost::random_device::result_type boost::random_device::max_value; #endif -#ifdef __linux__ +#if defined(__linux__) || defined (__FreeBSD__) // the default is the unlimited capacity device, using some secure hash // try "/dev/random" for blocking when the entropy pool has drained @@ -90,7 +90,7 @@ private: int fd; }; -#endif // __linux__ +#endif // __linux__ || __FreeBSD__ boost::random_device::random_device(const std::string& token)