fix random:seed/1 warning
This commit is contained in:
parent
f510ab894f
commit
6b3d67c515
|
@ -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()).
|
||||||
|
|
Loading…
Reference in New Issue