/usr/lib/python2.7/dist-packages/M2Crypto/Rand.py is in python-m2crypto 0.21.1-3ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | """M2Crypto wrapper for OpenSSL PRNG. Requires OpenSSL 0.9.5 and above.
Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved."""
__all__ = ['rand_seed', 'rand_add', 'load_file', 'save_file', 'rand_bytes',
'rand_pseudo_bytes']
import m2
rand_seed = m2.rand_seed
rand_add = m2.rand_add
load_file = m2.rand_load_file
save_file = m2.rand_save_file
rand_bytes = m2.rand_bytes
rand_pseudo_bytes = m2.rand_pseudo_bytes
|