diff options
author | Zeling Feng <zeling@google.com> | 2020-12-02 19:09:17 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-02 19:14:51 -0800 |
commit | 8b692f593103d24d1de0d85ef89ec5b3f3e9cd5a (patch) | |
tree | 0a2a654e03189c9bf45d2bf7e4cf78a42a8c80a6 /test/benchmarks/tcp | |
parent | ed8bdf461b5f8093957a11f526032d42938af7ca (diff) |
Make testutil.RandomID safe for concurrent uses
testutil.RandomID was using Rand.Read which is not safe for concurrent use.
It caused name conflicts in packetimpact tests when they are run in parallel.
Adding a mutex to protect the Rand.Read operation.
PiperOrigin-RevId: 345360062
Diffstat (limited to 'test/benchmarks/tcp')
0 files changed, 0 insertions, 0 deletions