Author: Armin Rigo <ar...@tunes.org> Branch: copy-over-original2 Changeset: r431:23fd1341aaed Date: 2013-07-24 16:56 +0200 http://bitbucket.org/pypy/stmgc/changeset/23fd1341aaed/
Log: Expand the explanation diff --git a/c4/demo_random.c b/c4/demo_random.c --- a/c4/demo_random.c +++ b/c4/demo_random.c @@ -727,11 +727,12 @@ { int i, status; - // seed changes daily - // a bit pointless for now.. + /* pick a random seed from the time in seconds. + A bit pointless for now... because the interleaving of the + threads is really random. */ default_seed = time(NULL); - default_seed -= (default_seed % (3600 * 24)); - + printf("running with seed=%lld\n", (long long)default_seed); + for (i = 0; i < SHARED_ROOTS; i++) { if (i % 3 == 0) { shared_roots[i] = allocate_pseudoprebuilt_with_hash( _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit