Convert memoryview to bytes
This commit is contained in:
parent
85196980d7
commit
f445d17179
1 changed files with 2 additions and 2 deletions
|
|
@ -49,10 +49,10 @@ class QngWrapper:
|
||||||
|
|
||||||
def randbytes(self, length):
|
def randbytes(self, length):
|
||||||
try:
|
try:
|
||||||
return self.qng.RandBytes(length)
|
return bytes(self.qng.RandBytes(length))
|
||||||
except:
|
except:
|
||||||
self.qng.Reset()
|
self.qng.Reset()
|
||||||
return self.qng.RandBytes(length)
|
return bytes(self.qng.RandBytes(length))
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
self.qng.Clear()
|
self.qng.Clear()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue