Skip to content

Commit 4445618

Browse files
committed
Update c-dependencies/js-compute-runtime/js-compute-builtins.cpp
1 parent 753a1e7 commit 4445618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c-dependencies/js-compute-runtime/js-compute-builtins.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4406,7 +4406,7 @@ bool process_network_io(JSContext *cx) {
44064406
bool math_random(JSContext *cx, unsigned argc, Value *vp) {
44074407
int32_t storage;
44084408
int32_t *buf = &storage;
4409-
random_get((int32_t)buf, 8);
4409+
random_get((int32_t)buf, sizeof(storage));
44104410
uint32_t value = storage + std::pow(2, 32);
44114411
double newvalue = static_cast<float>(value) / std::powf(2.0, 32.0);
44124412

0 commit comments

Comments
 (0)