mirror of
https://github.com/panda3d/panda3d.git
synced 2026-02-22 07:09:13 -06:00
10 lines
230 B
Python
10 lines
230 B
Python
from panda3d import core
|
|
import random
|
|
|
|
|
|
def test_hashval_hex():
|
|
hex = '%032x' % random.getrandbits(32 * 4)
|
|
val = core.HashVal()
|
|
val.input_hex(core.StringStream(hex.encode('ascii')))
|
|
assert str(val) == hex.lower()
|