Searched refs:random_size (Results 1 – 1 of 1) sorted by relevance
573 let mut random_size = 0u64; in test_buddy() localVariable574 unsafe { x86::random::rdrand64(&mut random_size) }; in test_buddy()576 random_size %= 1024 * 4096; in test_buddy()577 if random_size == 0 { in test_buddy()580 let random_size = in test_buddy() localVariable581 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()582 let random_size = PageFrameCount::from_bytes(random_size.next_power_of_two()).unwrap(); in test_buddy() localVariable585 unsafe { LockedFrameAllocator.allocate(random_size).unwrap() }; in test_buddy()