Replaced random_uniform/1 by rand:uniform/1
* leftover of 5118421f6f
* code base contains only one occurence of random_uniform/1
```
$ git grep random_uniform
src/ec_file.erl: UniqueNumber = erlang:integer_to_list(erlang:trunc(random_uniform() * 1000000000000)),
src/ec_file.erl:random_uniform() ->
```
This commit is contained in:
parent
1a42c54981
commit
15126e0048
1 changed files with 1 additions and 4 deletions
|
@ -223,7 +223,7 @@ real_dir_path(Path) ->
|
||||||
%% function of the same name.
|
%% function of the same name.
|
||||||
-spec insecure_mkdtemp() -> TmpDirPath::file:name() | {error, term()}.
|
-spec insecure_mkdtemp() -> TmpDirPath::file:name() | {error, term()}.
|
||||||
insecure_mkdtemp() ->
|
insecure_mkdtemp() ->
|
||||||
UniqueNumber = erlang:integer_to_list(erlang:trunc(random_uniform() * 1000000000000)),
|
UniqueNumber = erlang:integer_to_list(erlang:trunc(rand:uniform() * 1_000_000_000_000)),
|
||||||
TmpDirPath =
|
TmpDirPath =
|
||||||
filename:join([tmp(), lists:flatten([".tmp_dir", UniqueNumber])]),
|
filename:join([tmp(), lists:flatten([".tmp_dir", UniqueNumber])]),
|
||||||
|
|
||||||
|
@ -376,9 +376,6 @@ 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].
|
||||||
|
|
||||||
random_uniform() ->
|
|
||||||
rand:uniform().
|
|
||||||
|
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
%%% Test Functions
|
%%% Test Functions
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue