Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fix random number generation in IPC tests
The sockets are named using a random() suffix in at attempt to isolate concurrent test. However random() always returns the same random number by design ... unless pre-seeded with some value being unique enough for the particular execution. Borrowing the most of the above message from original "srandom" fix by Chrissie who also discovered this issue (nice!), I thought it would be more viable if we encoded such "unique enough" variables directly to IPC name being generated, not relying on pseudorandom generators in any way. Hence this other fix. Signed-off-by: Jan Pokorný <[email protected]>
- Loading branch information