[PATCH next 5/7] random32: Use add (not xor) in tools prandom_u32_state()

From: David Laight

Date: Mon Nov 02 2026 - 15:34:39 EST


Matches the main kernel change.

Signed-off-by: David Laight <david.laight.linux@xxxxxxxxx>
---
tools/include/linux/prandom.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/include/linux/prandom.h b/tools/include/linux/prandom.h
index b745041ccd6a..56d1422e54a8 100644
--- a/tools/include/linux/prandom.h
+++ b/tools/include/linux/prandom.h
@@ -46,6 +46,6 @@ static inline u32 prandom_u32_state(struct rnd_state *state)
state->s3 = TAUSWORTHE(state->s3, 13U, 21U, 4294967280U, 7U);
state->s4 = TAUSWORTHE(state->s4, 3U, 12U, 4294967168U, 13U);

- return (state->s1 ^ state->s2 ^ state->s3 ^ state->s4);
+ return (state->s1 + state->s2 + state->s3 + state->s4);
}
#endif // __TOOLS_LINUX_PRANDOM_H
--
2.39.5