billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=876036f0096a0c2269fd8e8934e7e5566123ad3c
commit 876036f0096a0c2269fd8e8934e7e5566123ad3c Author: Boris Faure <bill...@gmail.com> Date: Sat May 9 00:04:20 2020 +0200 termptyesc: randomize new entry in the true color cache --- src/bin/termptyesc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c index 44b7433..51a14a5 100644 --- a/src/bin/termptyesc.c +++ b/src/bin/termptyesc.c @@ -715,7 +715,8 @@ _tcc_insert(const uint32_t color_msb, const uint8_t approximated) uint32_t c = color_msb | approximated; int i; - i = (TCC_LEN / 2) + ((_tcc_random_pos + TCC_PRIME) % (TCC_LEN / 2)); + _tcc_random_pos = ((_tcc_random_pos + TCC_PRIME) % (TCC_LEN / 2)); + i = (TCC_LEN / 2) + _tcc_random_pos; _truecolor_cache.colors[i] = c; } --