kumquat-buildroot/support/testing/tests/package/sample_python_pynacl.py
Ricardo Martincoski 7e69ddc9e7 support/testing: add python-pynacl tests
Add a simple test case that minimally uses the module.
Add haveged to the target to generate enough entropy so pynacl ->
libsodium don't hang waiting for /dev/random.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-11-23 22:05:46 +01:00

4 lines
49 B
Python

import nacl.utils
nonce = nacl.utils.random(16)