Skip to content

Commit 5b4c5ca

Browse files
committed
bench: resolve lint errors
1 parent 1a75fdd commit 5b4c5ca

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lib/node_modules/@stdlib/math/base/assert/is-composite/benchmark/c/native/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ static double tic( void ) {
7676
}
7777

7878
/**
79-
* Generates a random number on the interval [ 0,1 ].
79+
* Generates a random number on the interval [0,1).
8080
*
8181
* @return random number
8282
*/
83-
double rand_double() {
83+
static double rand_double( void ) {
8484
int r = rand();
8585
return (double)r / ( (double)RAND_MAX + 1.0 );
8686
}

lib/node_modules/@stdlib/math/base/assert/is-nonpositive-finite/benchmark/c/native/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ static double tic( void ) {
7676
}
7777

7878
/**
79-
* Generates a random number on the interval [ 0,1 ].
79+
* Generates a random number on the interval [0,1).
8080
*
8181
* @return random number
8282
*/
83-
double rand_double() {
83+
static double rand_double( void ) {
8484
int r = rand();
8585
return (double)r / ( (double)RAND_MAX + 1.0 );
8686
}

lib/node_modules/@stdlib/math/base/special/xlog1py/benchmark/c/native/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ static double tic( void ) {
7575
}
7676

7777
/**
78-
* Generates a random number on the interval [ 0,1 ].
78+
* Generates a random number on the interval [0,1).
7979
*
8080
* @return random number
8181
*/
82-
double rand_double() {
82+
static double rand_double( void ) {
8383
int r = rand();
8484
return (double)r / ( (double)RAND_MAX + 1.0 );
8585
}

lib/node_modules/@stdlib/math/base/special/xlogy/benchmark/c/native/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ static double tic( void ) {
7575
}
7676

7777
/**
78-
* Generates a random number on the interval [ 0,1 ].
78+
* Generates a random number on the interval [0,1).
7979
*
8080
* @return random number
8181
*/
82-
double rand_double() {
82+
static double rand_double( void ) {
8383
int r = rand();
8484
return (double)r / ( (double)RAND_MAX + 1.0 );
8585
}

0 commit comments

Comments
 (0)