Skip to content

Commit

Permalink
Merge pull request #137 from tsloughter/mkdtemp-spec
Browse files Browse the repository at this point in the history
fix insecure_mkdtemp type spec
  • Loading branch information
lrascao committed Aug 28, 2018
2 parents 7bf631d + f6992d7 commit b2d4181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ec_file.erl
Expand Up @@ -217,7 +217,7 @@ real_dir_path(Path) ->

%% @doc make a unique temporary directory. Similar function to BSD stdlib
%% function of the same name.
-spec insecure_mkdtemp() -> TmpDirPath::file:name().
-spec insecure_mkdtemp() -> TmpDirPath::file:name() | {error, term()}.
insecure_mkdtemp() ->
UniqueNumber = erlang:integer_to_list(erlang:trunc(random_uniform() * 1000000000000)),
TmpDirPath =
Expand Down

0 comments on commit b2d4181

Please sign in to comment.