summaryrefslogtreecommitdiff
path: root/src/func.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-02-02 19:43:59 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-02-02 19:43:59 (GMT)
commit18e3a7d9ad8e052d626ac250a9c9d5f36f29a54d (patch)
tree565c87e051833daa1c0eed7ffe45533fcf05c2fb /src/func.cc
parent61fffc0e5b92c9bda7e376983fdc90b498eed745 (diff)
parenteb30d42b5dd3ed5bb37336ed46a59eabaca81e06 (diff)
Merge branch 'master' of github.com:openscad/openscad into misc_updates
Conflicts: scripts/uni-build-dependencies.sh
Diffstat (limited to 'src/func.cc')
-rw-r--r--src/func.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/func.cc b/src/func.cc
index 5dcb3e9..791e957 100644
--- a/src/func.cc
+++ b/src/func.cc
@@ -43,7 +43,7 @@
*/
#include <boost/random/mersenne_twister.hpp>
-#include <boost/random/uniform_real_distribution.hpp>
+#include <boost/random/uniform_real.hpp>
#ifdef __WIN32__
#include <process.h>
@@ -54,8 +54,8 @@ int process_id = _getpid();
int process_id = getpid();
#endif
-boost::random::mt19937 deterministic_rng;
-boost::random::mt19937 lessdeterministic_rng( std::time(0) + process_id );
+boost::mt19937 deterministic_rng;
+boost::mt19937 lessdeterministic_rng( std::time(0) + process_id );
AbstractFunction::~AbstractFunction()
{
@@ -167,7 +167,7 @@ Value builtin_rands(const Context *, const std::vector<std::string>&, const std:
double min = std::min( args[0].toDouble(), args[1].toDouble() );
double max = std::max( args[0].toDouble(), args[1].toDouble() );
- boost::random::uniform_real_distribution<> distributor( min, max );
+ boost::uniform_real<> distributor( min, max );
Value::VectorType vec;
for (int i=0; i<args[2].toDouble(); i++) {
if ( deterministic ) {
contact: Jan Huwald // Impressum