Skip to content

Commit

Permalink
Fixed out-of-bounds when generating random on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Skielex committed Aug 1, 2024
1 parent 94d3bc4 commit ef6f907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pco_cli/generate_randoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def lomax05():

@datagen("i64")
def uniform():
return np.random.randint(-(2**63), 2**63, size=max_n)[:n]
return np.random.randint(-(2**63), 2**63, size=max_n, dtype=np.int64)[:n]


# disable the following by default because it's kinda a waste of disk:
Expand Down

0 comments on commit ef6f907

Please sign in to comment.