diff options
author | J08nY <johny@neuromancer.sk> | 2017-04-02 00:35:55 +0200 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-04-04 10:45:11 +0100 |
commit | 001dc1edaa4c5306fbb7c625202788458dadeafa (patch) | |
tree | ef9201b107d717c34b19f3fb9d4dca56d0fa32fe /python/olm/_base.py | |
parent | bb05b5687f12782cc2e87ffdf2dc0dfe0f6dcfb6 (diff) |
Python: Switch to a more general os.urandom for randomness source
Signed-off-by: Jan Jancar <johny@neuromancer.sk>
Diffstat (limited to 'python/olm/_base.py')
-rw-r--r-- | python/olm/_base.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/python/olm/_base.py b/python/olm/_base.py index 80720d9..64cb98b 100644 --- a/python/olm/_base.py +++ b/python/olm/_base.py @@ -2,9 +2,6 @@ import os.path from ctypes import * -def read_random(n): - with open("/dev/urandom", "rb") as f: - return f.read(n) lib = cdll.LoadLibrary(os.path.join( os.path.dirname(__file__), "..", "..", "build", "libolm.so.2") |