Fix valgrind issues in unit tests
Don't try to benchmark RDRAND on CPUs without it.

(This is a good way to make the benchmarks crash)