(offset: u32, seed: u32)
| 808 | } |
| 809 | |
| 810 | fn hash_number(offset: u32, seed: u32) -> Id { |
| 811 | let mut hash = seed; |
| 812 | hash = hash.wrapping_add(offset.wrapping_add(48)); |
| 813 | hash = hash.wrapping_add(hash << 10); |
| 814 | hash ^= hash >> 6; |
| 815 | hash = hash.wrapping_add(hash << 3); |
| 816 | hash ^= hash >> 11; |
| 817 | hash = hash.wrapping_add(hash << 15); |
| 818 | Id { |
| 819 | id: hash.wrapping_add(1), |
| 820 | offset, |
| 821 | base_id: seed, |
| 822 | string_id: StringId::empty(), |
| 823 | } |
| 824 | } |
| 825 | |
| 826 | fn hash_string_contents_with_config( |
| 827 | text: &str, |
no outgoing calls
no test coverage detected