From 001dc1edaa4c5306fbb7c625202788458dadeafa Mon Sep 17 00:00:00 2001 From: J08nY Date: Sun, 2 Apr 2017 00:35:55 +0200 Subject: Python: Switch to a more general os.urandom for randomness source Signed-off-by: Jan Jancar --- python/olm/_base.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'python/olm/_base.py') 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") -- cgit v1.2.3