Don't overflow 32-bit signed integer in offline tests

This commit is contained in:
Evgeny Khramtsov 2019-10-31 11:46:31 +03:00
parent a81324fc43
commit a420eb1f72
1 changed files with 1 additions and 1 deletions

View File

@ -522,4 +522,4 @@ message_iterator(Config) ->
end, All).
rand_string() ->
integer_to_binary(p1_rand:uniform((1 bsl 63)-1)).
integer_to_binary(p1_rand:uniform((1 bsl 31)-1)).