File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
lib/node_modules/@stdlib/math/base
is-composite/benchmark/c/native
is-nonpositive-finite/benchmark/c/native
xlog1py/benchmark/c/native Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ static double tic( void ) {
76
76
}
77
77
78
78
/**
79
- * Generates a random number on the interval [ 0,1 ] .
79
+ * Generates a random number on the interval [0,1) .
80
80
*
81
81
* @return random number
82
82
*/
83
- double rand_double () {
83
+ static double rand_double ( void ) {
84
84
int r = rand ();
85
85
return (double )r / ( (double )RAND_MAX + 1.0 );
86
86
}
Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ static double tic( void ) {
76
76
}
77
77
78
78
/**
79
- * Generates a random number on the interval [ 0,1 ] .
79
+ * Generates a random number on the interval [0,1) .
80
80
*
81
81
* @return random number
82
82
*/
83
- double rand_double () {
83
+ static double rand_double ( void ) {
84
84
int r = rand ();
85
85
return (double )r / ( (double )RAND_MAX + 1.0 );
86
86
}
Original file line number Diff line number Diff line change @@ -75,11 +75,11 @@ static double tic( void ) {
75
75
}
76
76
77
77
/**
78
- * Generates a random number on the interval [ 0,1 ] .
78
+ * Generates a random number on the interval [0,1) .
79
79
*
80
80
* @return random number
81
81
*/
82
- double rand_double () {
82
+ static double rand_double ( void ) {
83
83
int r = rand ();
84
84
return (double )r / ( (double )RAND_MAX + 1.0 );
85
85
}
Original file line number Diff line number Diff line change @@ -75,11 +75,11 @@ static double tic( void ) {
75
75
}
76
76
77
77
/**
78
- * Generates a random number on the interval [ 0,1 ] .
78
+ * Generates a random number on the interval [0,1) .
79
79
*
80
80
* @return random number
81
81
*/
82
- double rand_double () {
82
+ static double rand_double ( void ) {
83
83
int r = rand ();
84
84
return (double )r / ( (double )RAND_MAX + 1.0 );
85
85
}
You can’t perform that action at this time.
0 commit comments