check: improve test list randomization
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 20 Mar 2019 00:44:42 +0000 (17:44 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sat, 23 Mar 2019 13:27:12 +0000 (21:27 +0800)
commit07094a9652c0ce002138fef69a0d8c973e539bde
treeac8af4cead0040e9650cc305cdb45711ccc9ec59
parent2caa208e3ab52474dabb5b7b78f802330a17be89
check: improve test list randomization

awk doesn't have a particularly good random number generator -- it seeds
from the Unix epoch time in seconds, which means that the run order
across a bunch of VMs started at exactly the same time are unsettlingly
predictable.  Therefore, at least try to seed it with bash's $RANDOM,
which is slightly less predictable.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
check
randomize.awk