removed g_tw_rng_max per @chrisc/ROSS:119e16c3537f72cc974df292d92e0a973f7cfb41