We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9aaf619 commit ded7ea9Copy full SHA for ded7ea9
tools/snippets/benchmark/cpp/benchmark.boost.cpp
@@ -79,11 +79,11 @@ double benchmark() {
79
mt19937 rng;
80
81
// Define a uniform distribution for generating pseudorandom numbers as "doubles" between a minimum value (inclusive) and a maximum value (exclusive):
82
- uniform_real_distribution<> rand( 0.0, 1.0 );
+ uniform_real_distribution<> randu( 0.0, 1.0 );
83
84
t = tic();
85
for ( i = 0; i < ITERATIONS; i++ ) {
86
- x = rand( rng );
+ x = randu( rng );
87
y = 0.0; // TODO
88
if ( y != y ) {
89
printf( "should not return NaN\n" );
0 commit comments