@@ -64,8 +64,7 @@ |
||
| 64 | 64 | $shift = $shift === 0 ? (int)(7 / 100 * $this->max) : $shift; |
| 65 | 65 | |
| 66 | 66 | $result = $number + $shift <= $this->max ? |
| 67 | - $number + $shift : |
|
| 68 | - $this->min + ($number + $shift - $this->max) - 1; |
|
| 67 | + $number + $shift : $this->min + ($number + $shift - $this->max) - 1; |
|
| 69 | 68 | |
| 70 | 69 | if ($result < $this->min || $result > $this->max) { |
| 71 | 70 | $float = round(($this->min / ($this->max + 1)) + M_PI, 5); |
@@ -34,8 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | if ($clientSeed === null) { |
| 36 | 36 | $clientSeed = $seedPair ? |
| 37 | - $seedPair->getClientSeed() : |
|
| 38 | - Random::getString(16, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'); |
|
| 37 | + $seedPair->getClientSeed() : Random::getString(16, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'); |
|
| 39 | 38 | } |
| 40 | 39 | |
| 41 | 40 | $nonce = 1; // each new generation resets nonce |