Added the master_seed in two risk calculations