Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 55b7a63

Browse files
author
Jon Elverkilde
authored
Merge pull request #14 from savonarola/fix-deprecated-time-functions
Updated usage of time functions
2 parents 8cdce4b + 8997425 commit 55b7a63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hyper.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ run_report(P, Card, Repetitions) ->
285285
fun (I) ->
286286
io:format("~p values with p=~p, rep ~p~n",
287287
[Card, P, I]),
288-
random:seed(erlang:now()),
288+
random:seed(erlang:phash2([node()]),
289+
erlang:monotonic_time(),
290+
erlang:unique_integer()),
289291
Elements = generate_unique(Card),
290292
Estimate = card(insert_many(Elements, new(P))),
291293
abs(Card - Estimate) / Card

0 commit comments

Comments
 (0)