Removed checks on deprecated random module
This commit is contained in:
parent
685f08621b
commit
5118421f6f
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue