Date: Wed, 29 Jun 2022 10:28:51 GMT From: Peter Holm <pho@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: bc49526a561c - main - stress2: Fix broken random number generation Message-ID: <202206291028.25TASpZQ082281@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pho: URL: https://cgit.FreeBSD.org/src/commit/?id=bc49526a561c4ed8dd2678fbaed44cbd97142753 commit bc49526a561c4ed8dd2678fbaed44cbd97142753 Author: Peter Holm <pho@FreeBSD.org> AuthorDate: 2022-06-29 10:28:18 +0000 Commit: Peter Holm <pho@FreeBSD.org> CommitDate: 2022-06-29 10:28:18 +0000 stress2: Fix broken random number generation --- tools/test/stress2/misc/quota7.sh | 2 +- tools/test/stress2/misc/quota8.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test/stress2/misc/quota7.sh b/tools/test/stress2/misc/quota7.sh index 2e2fe6b7a52d..fa448e1f241d 100755 --- a/tools/test/stress2/misc/quota7.sh +++ b/tools/test/stress2/misc/quota7.sh @@ -66,7 +66,7 @@ for i in `jot 20`; do mksnap_ffs $mntpoint $mntpoint/.snap/snap$i sleep 1 done -i=$(($(date '+%S') % 20 + 1)) +i=$(($(date '+%s') % 20 + 1)) echo "rm -f $mntpoint/.snap/snap$i" rm -f $mntpoint/.snap/snap$i wait diff --git a/tools/test/stress2/misc/quota8.sh b/tools/test/stress2/misc/quota8.sh index 148c2d19ce65..b5c8a367d88c 100755 --- a/tools/test/stress2/misc/quota8.sh +++ b/tools/test/stress2/misc/quota8.sh @@ -74,7 +74,7 @@ for i in `jot 20`; do sleep 1 done # Remove random snapshot file -i=$((`date +%S` % 20 + 1)) +i=$((`date +%s` % 20 + 1)) echo "rm -f $mntpoint/.snap/snap$i" rm -f $mntpoint/.snap/snap$i wait
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206291028.25TASpZQ082281>