随机的24位哈希只是随机的24位。您可以只使用random模块生成它们。
import random hash = random.getrandbits(24) print(hex(hash))
输出结果
这将给出输出
0x94fbee