Removed checks on deprecated random module

This commit is contained in:
Ariel Otilibili 2024-01-12 19:50:54 +01:00
parent 685f08621b
commit 5118421f6f

View file

@ -376,14 +376,8 @@ sub_files(From) ->
{ok, SubFiles} = file:list_dir(From), {ok, SubFiles} = file:list_dir(From),
[filename:join(From, SubFile) || SubFile <- SubFiles]. [filename:join(From, SubFile) || SubFile <- SubFiles].
-ifdef(rand_module).
random_uniform() -> random_uniform() ->
rand:uniform(). rand:uniform().
-else.
random_uniform() ->
random:seed(os:timestamp()),
random:uniform().
-endif.
%%%=================================================================== %%%===================================================================
%%% Test Functions %%% Test Functions