Skip to content

Commit

Permalink
Removed checks on deprecated random module
Browse files Browse the repository at this point in the history
  • Loading branch information
ariel-anieli committed Jan 12, 2024
1 parent 685f086 commit 5118421
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ec_file.erl
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,8 @@ sub_files(From) ->
{ok, SubFiles} = file:list_dir(From),
[filename:join(From, SubFile) || SubFile <- SubFiles].

-ifdef(rand_module).
random_uniform() ->
rand:uniform().
-else.
random_uniform() ->
random:seed(os:timestamp()),
random:uniform().
-endif.

%%%===================================================================
%%% Test Functions
Expand Down

0 comments on commit 5118421

Please sign in to comment.