mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-18 17:36:57 +00:00
Merge pull request #91 from minrk/backport-winrandom-backwards
backport winrandom fix
This commit is contained in:
commit
b7a30978ca
@ -22,7 +22,7 @@ void randombytes(unsigned char *x,unsigned long long xlen)
|
|||||||
if (xlen < 1048576) i = (unsigned) xlen; else i = 1048576;
|
if (xlen < 1048576) i = (unsigned) xlen; else i = 1048576;
|
||||||
|
|
||||||
ret = CryptGenRandom(hProvider, i, x);
|
ret = CryptGenRandom(hProvider, i, x);
|
||||||
if (ret != FALSE) {
|
if (ret == FALSE) {
|
||||||
Sleep(1);
|
Sleep(1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user