move the random syscall loop out to its own file