Skip to content

Commit 26ccd4c

Browse files
committed
Update js-compute-builtins.cpp
1 parent 4fbbb84 commit 26ccd4c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4404,9 +4404,8 @@ bool process_network_io(JSContext *cx) {
44044404
}
44054405

44064406
bool math_random(JSContext *cx, unsigned argc, Value *vp) {
4407-
unt32_t storage;
4408-
unt32_t *buf = &storage;
4409-
random_get((int32_t)(&buf), sizeof(storage));
4407+
unt32_t storage;
4408+
random_get((int32_t)(&storage), sizeof(storage));
44104409
double newvalue = static_cast<double>(storage) / std::pow(2.0, 32.0);
44114410

44124411
CallArgs args = CallArgsFromVp(argc, vp);

0 commit comments

Comments
 (0)