diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2017-05-17 08:29:18 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2017-05-17 16:18:45 +0000 |
| commit | ff262913fee4d9d8cc5ce86790d80c070a4b5f89 (patch) | |
| tree | e492932239bbd6bc030aea5bafd8ea49f6e42e33 /src/database | |
| parent | 7555a45dc2ef22f2afe7f1cc78fc313fd0365735 (diff) | |
| download | go-ff262913fee4d9d8cc5ce86790d80c070a4b5f89.tar.xz | |
cmd/compile: seed rand with time when race enabled
When the race detector is enabled,
the compiler randomizes the order in which functions are compiled,
in an attempt to shake out bugs.
But we never re-seed the rand source, so every execution is identical.
Fix that to get more coverage.
Change-Id: If5cdde03ef4f1bab5f45e07f03fb6614945481d7
Reviewed-on: https://go-review.googlesource.com/43572
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/database')
0 files changed, 0 insertions, 0 deletions
