fix string seed in random function