Fixed occasional nonrandomness bug, now compiles for 328