Merge pull request #137 from tsloughter/mkdtemp-spec

fix insecure_mkdtemp type spec
This commit is contained in:
Luis Rascão 2018-08-28 08:38:55 +00:00 committed by GitHub
commit b2d41811c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 =