diff --git a/src/crawler/crawler_sup.erl b/src/crawler/crawler_sup.erl index 28e7fc5..3ba6b02 100644 --- a/src/crawler/crawler_sup.erl +++ b/src/crawler/crawler_sup.erl @@ -35,6 +35,7 @@ init([{StartPort, Count, DBHost, DBPort, LogLevel, DBConn, CacheTime, HashCacheM {ok, {Spec, Children}}. create_dht_instance(StartPort, Count) -> + random:seed(now()), Dir = "dhtstate/", filelib:ensure_dir(Dir), IDs = create_discrete_ids(Count),