summary refs log tree commit diff
path: root/src/Math/Perlin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Math/Perlin.cpp')
-rw-r--r--src/Math/Perlin.cpp2
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);
 }