Changeset 41910 in vbox for trunk/src/VBox/Runtime/common/rand/randopenssl.cpp
- Timestamp:
- Jun 25, 2012 1:28:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/rand/randopenssl.cpp
r41909 r41910 43 43 { 44 44 /** @todo proper error handling? */ 45 int rc = RAND_bytes(pb, cb);45 int rc = RAND_bytes(pb, (int)cb); 46 46 if (RT_UNLIKELY(rc != 1)) 47 rc = RAND_pseudo_bytes(pb, cb);47 rc = RAND_pseudo_bytes(pb, (int)cb); 48 48 AssertReleaseMsg(rc == 1, ("RAND_bytes returned %d (error %d)\n", rc, ERR_get_error())); 49 49 }
Note:
See TracChangeset
for help on using the changeset viewer.