mt19937 prng如何准确地用于python随机模块函数?

from random import *
seed(5489)
hex(getrandbits(32)) # '0xc9a0e034'
hex(getrandbits(32)) # '0x38feb21f'

I ran this with Python 3.8.2 (not that it should matter too much). This is not what I would expect from a MT19937 32 bit PRNG. To be exact, I was expecting values similar to the ones presented in this website: https://create.stephan-brumme.com/mersenne-twister/

Python与其他语言有何不同?有没有办法我自己复制Python生成的位? (此外,如何从32位字长的整数生成random()从0到1的浮点数?)

谢谢!