#!/usr/bin/env python3

import ctypes
rsmod = ctypes.CDLL("rsmod.so")

r = rsmod.inc(3)
print(r)
r = rsmod.inc(3)
print(r)

rsmod.dump(b"value");
568f39b0578b46e0b87932c99a78157b7c5598cf
<mask token>

<mask token>
print(r)
<mask token>
print(r)
rsmod.dump(b'value')

<mask token>
rsmod = ctypes.CDLL('rsmod.so')
r = rsmod.inc(3)
print(r)
r = rsmod.inc(3)
print(r)
rsmod.dump(b'value')

import ctypes
rsmod = ctypes.CDLL('rsmod.so')
r = rsmod.inc(3)
print(r)
r = rsmod.inc(3)
print(r)
rsmod.dump(b'value')

#!/usr/bin/env python3

import ctypes
rsmod = ctypes.CDLL("rsmod.so")

r = rsmod.inc(3)
print(r)
r = rsmod.inc(3)
print(r)

rsmod.dump(b"value");