This commit is contained in:
Feng 2016-10-01 09:43:21 +08:00
parent 6b3d67c515
commit daa87206a7
1 changed files with 2 additions and 2 deletions

View File

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