Skip to content
Browse files

revert change to prng

  • Loading branch information...
1 parent fecf6a2 commit 55317747610d8c62803321db3d4b8814bcdf7a14 @argv0 argv0 committed Aug 31, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 c_src/sample.hpp
  2. +3 −3 src/basho_metrics_nifs.erl
View
4 c_src/sample.hpp
@@ -133,7 +133,7 @@ struct exponentially_decaying_sample
long next_scale_time_;
std::map<double, IntType> values_;
boost::random::uniform_int_distribution<IntType> dist_;
- boost::random::mt19937_64 gen_;
+ boost::random::mt19937 gen_;
const static long RESCALE_THRESHOLD = 60;
};
@@ -185,7 +185,7 @@ struct uniform_sample
std::size_t count_;
std::vector<IntType> values_;
boost::random::uniform_int_distribution<IntType> dist_;
- boost::random::mt19937_64 gen_;
+ boost::random::mt19937 gen_;
};
#endif // include guard
View
6 src/basho_metrics_nifs.erl
@@ -127,9 +127,9 @@ simple_test() ->
{mean,500000},
{count,1000001},
{stddev,0},
- {p50,490606},
- {p95,954205},
- {p99,990504}] = ?MODULE:histogram_stats(H).
+ {p50,514255},
+ {p95,956215},
+ {p99,991377}] = ?MODULE:histogram_stats(H).
-endif.

0 comments on commit 5531774

Please sign in to comment.
Something went wrong with that request. Please try again.