added seed option for rng in diff