Author: mattip <[email protected]>
Branch:
Changeset: r57252:79c3b4a50651
Date: 2012-09-09 00:43 +0300
http://bitbucket.org/pypy/pypy/changeset/79c3b4a50651/
Log: find test for urandom in module/posix/test/test_posix2, fix
diff --git a/pypy/rlib/rurandom.py b/pypy/rlib/rurandom.py
--- a/pypy/rlib/rurandom.py
+++ b/pypy/rlib/rurandom.py
@@ -59,7 +59,7 @@
with lltype.scoped_alloc(rffi.CArray(rwin32.BYTE), n,
zero=True, # zero seed
) as buf:
- if not CryptGenRandom(provider, n, buf):
+ if not CryptGenRandom(rffi.cast(HCRYPTPROV, provider), n, buf):
raise rwin32.lastWindowsError("CryptGenRandom")
return rffi.charpsize2str(rffi.cast(rffi.CCHARP, buf), n)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit