25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

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

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)).