torture: Seed torture_random_state on CPU
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 7 Nov 2022 02:16:14 +0000 (18:16 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 4 Jan 2023 01:52:54 +0000 (17:52 -0800)
commit95f93e97ed0f56f54f74293a0a82e05599d5078d
tree7219e80f6e48e23014daeb1175a4048b84f17530
parent1b929c02afd37871d5afb9d498426f83432e71c2
torture: Seed torture_random_state on CPU

The DEFINE_TORTURE_RANDOM_PERCPU() macro defines per-CPU random-number
generators for torture testing, but the seeds for each CPU's instance
will be identical if they are first used at the same time.  This commit
therefore adds the CPU number to the mix when reseeding.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/torture.c