Skip to content

Fix endianess issue and add srand()

Ammar Faizi io-uring 2 versions Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 1 replySuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2test: Fix endianess issue on `bind()` and `connect()`test/232c93d07b74-test.c test/accept-link.c test/accept.c +4 more+31 -200 replies
2/2test/accept-link: Add `srand()` for better randomnesstest/accept-link.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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 by srand().

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