set seed at task start