mirror of
https://github.com/kwsch/NHSE.git
synced 2026-07-19 08:41:32 -05:00
Clamp shift max
This commit is contained in:
parent
8428f5955b
commit
786aad69f0
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user