Skip to content

Commit

Permalink
Address Damien's review
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Sep 18, 2020
1 parent d3d5c44 commit 05219a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/random.ml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module State = struct
let rec int63aux s n =
let b1 = bits s in
let b2 = bits s lsl 30 in
let b3 = (bits s land 3) lsl 60 in
let b3 = (bits s lsr 28) lsl 60 in
let r = b1 lor b2 lor b3 in
let v = r mod n in
if r - v > max_int - n + 1 then int63aux s n else v
Expand Down

0 comments on commit 05219a2

Please sign in to comment.