CPASSREF: Remove dependence on coreutils 'factor', and fix potential noise generation bias.

First commit should resolve #8.
Second is unrelated, but patches a potential source of bias in our noise generation routine.