daman! fix crawler initiali id generation bug (not set random seed)

This commit is contained in:
Kevin Lynx 2013-08-05 22:03:54 +08:00
parent 377912982d
commit 648fe7f20d

View File

@ -35,6 +35,7 @@ init([{StartPort, Count, DBHost, DBPort, LogLevel, DBConn, CacheTime, HashCacheM
{ok, {Spec, Children}}. {ok, {Spec, Children}}.
create_dht_instance(StartPort, Count) -> create_dht_instance(StartPort, Count) ->
random:seed(now()),
Dir = "dhtstate/", Dir = "dhtstate/",
filelib:ensure_dir(Dir), filelib:ensure_dir(Dir),
IDs = create_discrete_ids(Count), IDs = create_discrete_ids(Count),