We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b262e3c + a4b4354 commit b544c38Copy full SHA for b544c38
randomstate/interface/dSFMT/dSFMT-shim.h
@@ -67,8 +67,11 @@ static NPY_INLINE double random_double(aug_state *state) {
67
}
68
69
static NPY_INLINE uint64_t random_raw_values(aug_state *state) {
70
+ uint64_t out;
71
double d = random_double_from_buffer(state);
- return *((uint64_t *)&d);
72
+
73
+ memcpy(&out, &d, sizeof(d));
74
+ return out;
75
76
77
extern void entropy_init(aug_state *state);
0 commit comments