Searched refs:random_size (Results 1 – 1 of 1) sorted by relevance
452 let mut random_size = 0u64; in test_buddy() localVariable453 unsafe { x86::random::rdrand64(&mut random_size) }; in test_buddy()455 random_size = random_size % (1024 * 4096); in test_buddy()456 if random_size == 0 { in test_buddy()459 let random_size = in test_buddy() localVariable460 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()461 let random_size = PageFrameCount::from_bytes(random_size.next_power_of_two()).unwrap(); in test_buddy() localVariable464 unsafe { LockedFrameAllocator.allocate(random_size).unwrap() }; in test_buddy()