shithub: orca

Download patch

ref: 161cae5f9b09aca861a99b69ecc99b897bc517c5
parent: 2d1562cc1f42f3661a8ba7d5d9e6327588005cb7
author: cancel <cancel@cancel.fm>
date: Thu Dec 20 03:28:58 EST 2018

Change 'R' to include the max in the interval

--- a/sim.c
+++ b/sim.c
@@ -901,7 +901,7 @@
   }
   Usz key = y * width + x;
   key = hash32_shift_mult((y * width + x) ^ (Tick_number << UINT32_C(16)));
-  Usz val = key % (max - min) + min;
+  Usz val = key % (max + 1 - min) + min;
   POKE(1, 0, glyph_of(val));
 END_PHASE