make open_testfile's open flag chooser use set_rand_bitmask