Skip to content

Commit ded7ea9

Browse files
committed
Rename variable
1 parent 9aaf619 commit ded7ea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/snippets/benchmark/cpp/benchmark.boost.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ double benchmark() {
7979
mt19937 rng;
8080

8181
// 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 );
82+
uniform_real_distribution<> randu( 0.0, 1.0 );
8383

8484
t = tic();
8585
for ( i = 0; i < ITERATIONS; i++ ) {
86-
x = rand( rng );
86+
x = randu( rng );
8787
y = 0.0; // TODO
8888
if ( y != y ) {
8989
printf( "should not return NaN\n" );

0 commit comments

Comments
 (0)