Home
last modified time | relevance | path

Searched refs:seeds (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/radix-tree/
H A Diteration_check.c16 static unsigned int seeds[3]; variable
81 if (rand_r(&seeds[0]) % 50 == 0) { in tagged_iteration_fn()
114 if (rand_r(&seeds[1]) % 50 == 0) { in untagged_iteration_fn()
141 pgoff = rand_r(&seeds[2]) % MAX_IDX; in remove_entries_fn()
176 seeds[i] = rand(); in iteration_test()
/kernel/linux/linux-6.6/tools/testing/radix-tree/
H A Diteration_check.c16 static unsigned int seeds[3]; variable
81 if (rand_r(&seeds[0]) % 50 == 0) { in tagged_iteration_fn()
114 if (rand_r(&seeds[1]) % 50 == 0) { in untagged_iteration_fn()
141 pgoff = rand_r(&seeds[2]) % MAX_IDX; in remove_entries_fn()
176 seeds[i] = rand(); in iteration_test()
/kernel/linux/linux-6.6/lib/
H A Drandom32.c116 u32 seeds[4]; in prandom_seed_full_state() local
118 get_random_bytes(&seeds, sizeof(seeds)); in prandom_seed_full_state()
119 state->s1 = __seed(seeds[0], 2U); in prandom_seed_full_state()
120 state->s2 = __seed(seeds[1], 8U); in prandom_seed_full_state()
121 state->s3 = __seed(seeds[2], 16U); in prandom_seed_full_state()
122 state->s4 = __seed(seeds[3], 128U); in prandom_seed_full_state()
/kernel/linux/linux-5.10/lib/
H A Drandom32.c117 u32 seeds[4]; in prandom_seed_full_state() local
119 get_random_bytes(&seeds, sizeof(seeds)); in prandom_seed_full_state()
120 state->s1 = __seed(seeds[0], 2U); in prandom_seed_full_state()
121 state->s2 = __seed(seeds[1], 8U); in prandom_seed_full_state()
122 state->s3 = __seed(seeds[2], 16U); in prandom_seed_full_state()
123 state->s4 = __seed(seeds[3], 128U); in prandom_seed_full_state()
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Dsunxi_nand.c606 const u16 *seeds = sunxi_nfc_randomizer_page_seeds; in sunxi_nfc_randomizer_state() local
614 seeds = sunxi_nfc_randomizer_ecc512_seeds; in sunxi_nfc_randomizer_state()
616 seeds = sunxi_nfc_randomizer_ecc1024_seeds; in sunxi_nfc_randomizer_state()
619 return seeds[page % mod]; in sunxi_nfc_randomizer_state()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dsunxi_nand.c596 const u16 *seeds = sunxi_nfc_randomizer_page_seeds; in sunxi_nfc_randomizer_state() local
604 seeds = sunxi_nfc_randomizer_ecc512_seeds; in sunxi_nfc_randomizer_state()
606 seeds = sunxi_nfc_randomizer_ecc1024_seeds; in sunxi_nfc_randomizer_state()
609 return seeds[page % mod]; in sunxi_nfc_randomizer_state()

Completed in 15 milliseconds