]> www.infradead.org Git - users/willy/pagecache.git/commit
lib/rbtree: add random seed
authorWei Yang <richard.weiyang@gmail.com>
Mon, 10 Mar 2025 07:49:34 +0000 (07:49 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 14 Mar 2025 22:56:13 +0000 (15:56 -0700)
commit894fe9bb99f8305d2e550d46f1cafb75e0ff7ab3
treecef9dd13a608f6a40551879d6e2aa8785702dbb6
parent34b2d4856f650fb64a094eb708038e4383c520ef
lib/rbtree: add random seed

Current test use pseudo rand function with fixed seed, which means the
test data is the same pattern each time.

Add random seed parameter to randomize the test.

Link: https://lkml.kernel.org/r/20250310074938.26756-4-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michel Lespinasse <michel@lespinasse.org>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/types.h
lib/interval_tree_test.c
lib/rbtree_test.c
tools/include/linux/types.h
tools/testing/rbtree/interval_tree_test.c
tools/testing/rbtree/rbtree_test.c