ref: 06d0dd5d70ecd660d8050c61431fbf68f14f256b
parent: ca68760317b98797cdd7b0464390b04bb1fd8f23
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Oct 5 09:56:24 EDT 2018
Fix rand() The seed should be unsigned long, otherwise you can have overflow problems.
--- a/lib/c/rand.c
+++ b/lib/c/rand.c
@@ -2,7 +2,7 @@
#undef rand
#undef srand
-static int next;
+static unsigned long next;
void
srand(unsigned seed)