fix random:seed/1 warning

This commit is contained in:
Feng 2016-09-30 16:13:50 +08:00
parent f510ab894f
commit 6b3d67c515
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@
seed() -> seed() ->
case erlang:function_exported(erlang, timestamp, 0) of case erlang:function_exported(erlang, timestamp, 0) of
true -> random:seed(erlang:timestamp()); %% R18 true -> rand:seed(erlang:timestamp()); %% R18
false -> random:seed(os:timestamp()) %% Compress now() deprecated warning... false -> rand:seed(os:timestamp()) %% Compress now() deprecated warning...
end. end.
now_to_secs() -> now_to_secs(os:timestamp()). now_to_secs() -> now_to_secs(os:timestamp()).