Fix endianess issue and add srand()
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyApplied
- v12 patches 1 replySuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | test: Fix endianess issue on `bind()` and `connect()`test/ test/ test/ +4 more | +31 | 0 replies | |
| 2/2 | test/accept-link: Add `srand()` for better randomnesstest/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH liburing v2 0/2] Fix endianess issue and add srand()
Quoted 9 lines · Jens Axboe
Quoted 1 line · Ammar Faizi
The use of
rand()should be accompanied bysrand().The idiomatic way that I usually do it for these tests is:
srand(getpid());
Shouldn't really matter, but we may as well keep it consistent.
v2: Use getpid() for the random seed.
----------------------------------------------------------------
Ammar Faizi (2):
test: Fix endianess issue on bind() and connect() test/accept-link: Add srand() for better randomness
test/232c93d07b74-test.c | 9 +++++---- test/accept-link.c | 14 ++++++++++---- test/accept.c | 5 +++-- test/poll-link.c | 11 +++++++---- test/shutdown.c | 5 +++-- test/socket-rw-eagain.c | 5 +++-- test/socket-rw.c | 5 +++-- 7 files changed, 34 insertions(+), 20 deletions(-)
---
Ammar Faizi