From nobody Tue Jun 11 13:52:17 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vz98d4FMwz5Lxwl; Tue, 11 Jun 2024 13:52:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vz98d2JTxz4jCv; Tue, 11 Jun 2024 13:52:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718113937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T9HX3vOBq/AR7cQ+f9zgcxtz1udth20JzRFV5aPzJL4=; b=JAQgtHs+8bbrk1PYMoJYGlclmjtXgSTQ4cJ7tLMJwTKMG1Yh/JM54z1v8TVHwL+8PjIDOZ 5qiMnH104wGv8eAg4qGwaI9wNuncXY1vgHnZWap3n19od2xNnYk499m44rMTZ5SZLzAO6w kBIc00PeoSdtfcpAhEVRtYz5dSkrv3YnfMo60W63UYt50DoEOZs9cpIfaIdcWWbYu/22WK kkNvoG+V8s5R6X9uObbwN42I8A/RFttX3IRA7zkTPNDbELysCBUGR4EhxpbgvLFwSImnzW nXlcJcfYjfS1mSgb1g+pP37hW/K7+yrz2upwssgcmjkGI79akNR2bn9Kgo64eQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718113937; a=rsa-sha256; cv=none; b=YJCQZuHG+HRdORQ8KGre7Yfdvr6jpsHh4vWHsggk0+zZFez2nEAYVLrjpWezQxy7eBDAaZ 3RNc9KiFmJafNVBjxA37BpgJnj+ZftkhGG5KqVN8jOFdOMAnSj/XOWGKJVkzZGQVVLToYv 3FNrCK17Ul21VFbudUF3eQv8rG9Eqdtj4nmRFO7pAP1O2SGk3uYz9et7jJJlDEJIXnpj8X EJsoAuQIPLZ9kuWYYsUKoa2NCO3ct6oe7x2/ZWzvJIcPtooLK6v2LRgKkzvGMB6tIMLGyO hEzrbJBOcZmFgHguaU8uEw7XseKW9bBI5QPlhcl+1dHMkuVsGr7cd49pi2dIeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718113937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T9HX3vOBq/AR7cQ+f9zgcxtz1udth20JzRFV5aPzJL4=; b=Sbe1bdB63Ms9Cv3L3EBz34jgcxKwc0rIIPWABF6iboLmht7EY7W7VMGtnhQPTncbF+FZV+ EBQqJgA0nUtCBRUxogRfN6DCBj0XzIi08xDXCazj+3oDYeWaWuX7q58Om0nTHDUfP9n61b I8PWruRlJK8jB9PjUhCNC8mz3Msfn9p9PscIk5P4qoHgzxfRhO2y91JE/FOCjrLWFDbgTh 8Aq4utBNoSYO7KWnv5ZvyjSYrMSfWSTBhVWEBtcqE0VaIFXZavlwUh7VaHdTZNYoJi1r3Q korsj25TdDZfgXEw1bwZ38fuBLUiksBrKybyWkxbYlEH0/9C0aYkoUAPuiL6Fw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Vz98d1wbVz19fK; Tue, 11 Jun 2024 13:52:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45BDqHYo022142; Tue, 11 Jun 2024 13:52:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45BDqHoG022139; Tue, 11 Jun 2024 13:52:17 GMT (envelope-from git) Date: Tue, 11 Jun 2024 13:52:17 GMT Message-Id: <202406111352.45BDqHoG022139@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Peter Holm Subject: git: cb53f83d8ad8 - main - Revert "stress2: Replace rename() with arc4random()" List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pho X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cb53f83d8ad8ee6fd9778c38b30e71244254e5bb Auto-Submitted: auto-generated The branch main has been updated by pho: URL: https://cgit.FreeBSD.org/src/commit/?id=cb53f83d8ad8ee6fd9778c38b30e71244254e5bb commit cb53f83d8ad8ee6fd9778c38b30e71244254e5bb Author: Peter Holm AuthorDate: 2024-06-11 13:51:21 +0000 Commit: Peter Holm CommitDate: 2024-06-11 13:51:21 +0000 Revert "stress2: Replace rename() with arc4random()" This reverts commit f65d0b18d9372b522e247c7bd58422a7ab3d30d8. Misleading commit message --- tools/test/stress2/misc/nfsrename.sh | 4 ++-- tools/test/stress2/misc/umountf2.sh | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/test/stress2/misc/nfsrename.sh b/tools/test/stress2/misc/nfsrename.sh index 864c64aed8ac..b6513fba1553 100755 --- a/tools/test/stress2/misc/nfsrename.sh +++ b/tools/test/stress2/misc/nfsrename.sh @@ -137,7 +137,7 @@ write_file(void) unlink(path); } - fprintf(fp, "blah blah blah garbage %ld\n", (long)arc4random()); + fprintf(fp, "blah blah blah garbage %ld\n", random()); fclose(fp); if (rename(path, filename) < 0) { warn("rename"); @@ -150,7 +150,7 @@ random_sleep(int base, int slop) { long val; - val = arc4random() % slop; + val = random() % slop; usleep(base + val); } diff --git a/tools/test/stress2/misc/umountf2.sh b/tools/test/stress2/misc/umountf2.sh index cd5b53616f97..5018a804c403 100755 --- a/tools/test/stress2/misc/umountf2.sh +++ b/tools/test/stress2/misc/umountf2.sh @@ -886,12 +886,11 @@ test(void) { unsigned long offset; unsigned long size = maxoplen; - unsigned long rv; + unsigned long rv = random(); unsigned long op = rv % (3 + !lite + mapped_writes); /* turn off the map read if necessary */ - arc4random_buf(&rv, sizeof(rv)); if (op == 2 && !mapped_reads) op = 0;