MT19937 CTR implementation