Switch to leveled_rand for compatibility
This commit is contained in:
parent
6f4f1b9560
commit
787b02e4d8
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ segments(Length) ->
|
||||||
lists:foldl(fun(I, Acc) -> <<Acc/binary, (I - 1):16/integer>> end,
|
lists:foldl(fun(I, Acc) -> <<Acc/binary, (I - 1):16/integer>> end,
|
||||||
<<>>,
|
<<>>,
|
||||||
AllSegs),
|
AllSegs),
|
||||||
StartPos = random:uniform(length(AllSegs) - Length),
|
StartPos = leveled_rand:uniform(length(AllSegs) - Length),
|
||||||
{<<AllSegsBin/binary, AllSegsBin/binary,
|
{<<AllSegsBin/binary, AllSegsBin/binary,
|
||||||
AllSegsBin/binary, AllSegsBin/binary>>,
|
AllSegsBin/binary, AllSegsBin/binary>>,
|
||||||
lists:sublist(AllSegs, StartPos, Length)}.
|
lists:sublist(AllSegs, StartPos, Length)}.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue