add threadsafe compatibility for seed