When using -V, we can divide by zero in get_new_random_fd

Spotted by Tommi.

This whole function needs rewriting really, it's getting a bit crufty.