Skip to content

Commit 8081eee

Browse files
fix: random number generation
Co-authored-by: Philipp Burckhardt <[email protected]> Signed-off-by: Shabareesh Shetty <[email protected]>
1 parent 52f07eb commit 8081eee

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/stdev/benchmark/c

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/stdev/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ static double benchmark( void ) {
101101
int i;
102102

103103
for ( i = 0; i < 100; i++ ) {
104-
a[ i ] = random_uniform( 0.0, 10.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
105-
b[ i ] = random_uniform( 0.0, 10.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
104+
a[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 10.0 );
105+
b[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 10.0 );
106106
}
107107

108108
t = tic();

0 commit comments

Comments
 (0)