3546 Enhance set_determinism for global flags
#3547
Merged
set_determinism for global flags
#3547