From e29123cac3cb770ee11bf64278c4ec0fc697952b Mon Sep 17 00:00:00 2001 From: Merry Date: Fri, 23 Feb 2018 13:40:47 +0000 Subject: [PATCH] randomcache: Typo in randomcache_refill (#38) g_random_cache_low > high_plus_one didn't update g_random_cache_high. --- exosphere/randomcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exosphere/randomcache.c b/exosphere/randomcache.c index 675b64581..e9e50ecbc 100644 --- a/exosphere/randomcache.c +++ b/exosphere/randomcache.c @@ -52,7 +52,7 @@ void randomcache_refill(void) { } } else { /* g_random_cache_low > high_plus_one */ randomcache_refill_segment(high_plus_one, g_random_cache_low - high_plus_one); - g_random_cache_high - g_random_cache_low - 1; + g_random_cache_high = g_random_cache_low - 1; } } }