change rand_r seed

Fixes #2341