memtest.c: Revise prng to improve code density