File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
lib/node_modules/@stdlib/random/base/shared Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 16
16
* limitations under the License.
17
17
*/
18
18
19
+ #include "stdlib/random/base/shared.h"
19
20
#include <stdlib.h>
20
21
#include <stdio.h>
21
22
#include <stdint.h>
22
23
#include <math.h>
23
24
#include <time.h>
24
25
#include <sys/time.h>
25
- #include "stdlib/random/base/shared.h"
26
26
27
27
#define NAME "random/base/shared"
28
28
#define ITERATIONS 1000000
Original file line number Diff line number Diff line change 16
16
* limitations under the License.
17
17
*/
18
18
19
- // Note: keep project includes in alphabetical order...
19
+ #include "stdlib/random/base/shared.h"
20
20
#include <stdlib.h>
21
21
#include <stdint.h>
22
22
#include <string.h>
23
- #include <math.h>
24
- #include "stdlib/random/base/shared.h"
25
23
26
24
/**
27
25
* Frees a PRNG's allocated memory.
@@ -66,7 +64,7 @@ uint64_t stdlib_base_prng_next( struct BasePRNGObject *obj ) {
66
64
*/
67
65
double stdlib_base_prng_normalized ( struct BasePRNGObject * obj ) {
68
66
if ( obj == NULL ) {
69
- return NAN ;
67
+ return 0.0 / 0.0 ; // NaN
70
68
}
71
69
double v ;
72
70
obj -> prng -> normalized ( obj , & v );
You can’t perform that action at this time.
0 commit comments