mirror of
https://github.com/btdig/dhtcrawler2.git
synced 2025-01-19 04:31:37 +00:00
daman! fix crawler initiali id generation bug (not set random seed)
This commit is contained in:
parent
377912982d
commit
648fe7f20d
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user