(static_random: u32)
| 8 | |
| 9 | impl PerformantFixedSet { |
| 10 | fn new(static_random: u32) -> Self { |
| 11 | PerformantFixedSet { |
| 12 | static_random, |
| 13 | buckets: [0; 64] |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | fn get_bucket_index(&self, value: u32) -> usize { |
| 18 | ((value ^ self.static_random) % 64) as usize |
nothing calls this directly
no outgoing calls
no test coverage detected