Lines Matching refs:seed
268 static void rnd_buf(uint8_t *data, size_t len, unsigned int seed) in rnd_buf() argument
273 seed = 1103515245 * seed + 12345; in rnd_buf()
274 data[i] = (uint8_t)(seed >> (i % 13)); in rnd_buf()
363 int seed = get_file_block_seed(file->index, block_index); in emit_test_blocks() local
378 rnd_buf(data, block_size, seed); in emit_test_blocks()
444 static void shuffle(int array[], int count, unsigned int seed) in shuffle() argument
453 seed = 1103515245 * seed + 12345; in shuffle()
454 shuffle_index = i + seed % items_left; in shuffle()
628 int seed = get_file_block_seed(file->index, block_idx); in validate_test_file_content_with_seed() local
642 rnd_buf(expected_block, INCFS_DATA_FILE_BLOCK_SIZE, seed); in validate_test_file_content_with_seed()
749 int seed = get_file_block_seed(file->index, 0); in build_mtree() local
751 rnd_buf((uint8_t *)data, file->size, seed); in build_mtree()
764 int seed = get_file_block_seed(file->index, i); in build_mtree() local
770 rnd_buf((uint8_t *)data, block_size, seed); in build_mtree()