VirtualBox

Changeset 45263 in vbox


Ignore:
Timestamp:
Mar 31, 2013 4:29:57 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84652
Message:

rand-posix.cpp: Another S10 (testboxsh1) fix/hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/rand-posix.cpp

    r43363 r45263  
    5757    if ((size_t)cbRead != cb)
    5858    {
    59         ssize_t cTries = RT_MIN(cb, 256);
     59        /* S10 has been observed returning 1040 bytes at the time from /dev/urandom.
     60           Which means we need to do than 256 rounds to reach 668171 bytes if
     61           that's what demanded by the caller (like tstRTMemWipe.cpp). */
     62        ssize_t cTries = RT_MAX(256, cb / 64);
    6063        do
    6164        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette