took out rand seed, it should be up to callee