Fixing random_vector<>() in tests

Previous version gave linker error (undefined rference to rng/rnd).