rm lock parameter from rand.c funcs because their original purpose is gone