diff options
Diffstat (limited to 'src/Math/Perlin.cpp')
| -rw-r--r-- | src/Math/Perlin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Math/Perlin.cpp b/src/Math/Perlin.cpp index e0982cb..5614bb6 100644 --- a/src/Math/Perlin.cpp +++ b/src/Math/Perlin.cpp @@ -9,7 +9,7 @@ float ease(float t) { } uint8_t hash(uint8_t x) { - auto rot = (x * 5) % 8; + auto rot = x * 5 % 8; return x << rot | x >> (8 - rot); } |
