Merge pull request #137 from tsloughter/mkdtemp-spec
fix insecure_mkdtemp type spec
This commit is contained in:
commit
b2d41811c1
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ real_dir_path(Path) ->
|
||||||
|
|
||||||
%% @doc make a unique temporary directory. Similar function to BSD stdlib
|
%% @doc make a unique temporary directory. Similar function to BSD stdlib
|
||||||
%% function of the same name.
|
%% function of the same name.
|
||||||
-spec insecure_mkdtemp() -> TmpDirPath::file:name().
|
-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(random_uniform() * 1000000000000)),
|
||||||
TmpDirPath =
|
TmpDirPath =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue