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 21, 2020
1 parent 7290575 commit 258544c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Working version
### Standard library:

- #9487, #9489: Add Random.int63 which allows 62-bit bounds on 64-bit systems.
(David Allsopp, request by Francois Berenger, review by ??)
(David Allsopp, request by Francois Berenger, review by Damien Doligez)

- #9865: add Format.pp_print_seq
(Raphaël Proust, review by Nicolás Ojeda Bär)
Expand Down
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 258544c

Please sign in to comment.