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.
1 parent fde55b0 commit 01bde62Copy full SHA for 01bde62
c-dependencies/js-compute-runtime/js-compute-builtins.cpp
@@ -4405,7 +4405,7 @@ bool process_network_io(JSContext *cx) {
4405
4406
bool math_random(JSContext *cx, unsigned argc, Value *vp) {
4407
uint32_t storage;
4408
- random_get((int32_t)(&storage), sizeof(storage));
+ random_get(reinterpret_cast<int32_t>(&storage), sizeof(storage));
4409
double newvalue = static_cast<double>(storage) / std::pow(2.0, 32.0);
4410
4411
CallArgs args = CallArgsFromVp(argc, vp);
0 commit comments