mirror of
https://github.com/kwsch/NHSE.git
synced 2026-09-27 20:36:55 -05:00
Clamp shift max
This commit is contained in:
@@ -27,7 +27,7 @@ public EncryptedInt32(uint encryptedValue, ushort adjust = 0, byte shift = 0, by
|
||||
public EncryptedInt32(uint value)
|
||||
{
|
||||
Adjust = (ushort)RandUtil.Rand.Next();
|
||||
Shift = (byte)RandUtil.Rand.Next();
|
||||
Shift = (byte)RandUtil.Rand.Next(27);
|
||||
var enc = Encrypt(value, Shift, Adjust);
|
||||
Checksum = CalculateChecksum(enc);
|
||||
Value = value;
|
||||
|
||||
Reference in New Issue
Block a user