mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix singleplayer crash.
This commit is contained in:
parent
d4225cfb45
commit
3995f099b0
@ -12,7 +12,7 @@ fn derive_uuid(username: &str) -> Uuid {
|
||||
let mix_byte_step: u8 = mix_byte_1
|
||||
.wrapping_pow(239)
|
||||
.wrapping_mul((i as u8).wrapping_pow(43));
|
||||
let mix_byte_2 = state[i + mix_byte_step as usize % 16];
|
||||
let mix_byte_2 = state[(i + mix_byte_step as usize) % 16];
|
||||
let rot_step: u8 = mix_byte_1
|
||||
.wrapping_pow(29)
|
||||
.wrapping_mul((i as u8).wrapping_pow(163));
|
||||
|
Loading…
Reference in New Issue
Block a user