Skip to content

Commit

Permalink
Force 64 bit in randint (for windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Jun 11, 2022
1 parent d63650d commit 0864178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtrack/interal_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def new_io_buffer(_context=None, capacity=1048576):
head = IOBufferHeader(_buffer=iobuf)
assert head._offset == 0
assert head._buffer is iobuf
head.buffer_id = np.random.randint(0, 2**60)
head.buffer_id = np.random.randint(0, 2**60, dtype=np.int64)

return iobuf

Expand Down

0 comments on commit 0864178

Please sign in to comment.