mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
lib/: rename random32() to prandom_u32()
Use preferable function name which implies using a pseudo-random number generator. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
56a1ba5fd1
commit
f39fee5f11
@@ -229,7 +229,7 @@ static int __init list_sort_test(void)
|
||||
goto exit;
|
||||
}
|
||||
/* force some equivalencies */
|
||||
el->value = random32() % (TEST_LIST_LEN/3);
|
||||
el->value = prandom_u32() % (TEST_LIST_LEN / 3);
|
||||
el->serial = i;
|
||||
el->poison1 = TEST_POISON1;
|
||||
el->poison2 = TEST_POISON2;
|
||||
|
Reference in New Issue
Block a user