Changeset 11558 in vbox
- Timestamp:
- Aug 21, 2008 9:50:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/rand.h
r11523 r11558 130 130 RTDECL(int) RTRandAdvCreatePseudo(PRTRAND phRand) RT_NO_THROW; 131 131 132 133 132 /** 134 133 * Create an instance of the Park-Miller pseudo random number generator. … … 140 139 141 140 /** 142 * Create an instance of the default non-pseudo random number generator. 143 * 144 * @returns IPRT status code. 145 * @retval VERR_NOT_SUPPORTED on platforms which doesn't have this feature 146 * (Windows & OS/2). 141 * Create an instance of the faster random number generator for the OS. 142 * 143 * @returns IPRT status code. 144 * @retval VERR_NOT_SUPPORTED on platforms which doesn't have this feature. 145 * @retval VERR_FILE_NOT_FOUND on system where the random generator hasn't 146 * been installed or configured correctly. 147 * @retval VERR_PATH_NOT_FOUND for the same reasons as VERR_FILE_NOT_FOUND. 148 * 147 149 * @param phRand Where to store the handle to the generator. 148 150 * 149 151 * @remarks Think /dev/urandom. 150 152 */ 151 RTDECL(int) RTRandAdvCreate NonPseudo(PRTRAND phRand) RT_NO_THROW;152 153 /** 154 * Create an instance of the default pure non-pseudo random number generator.153 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW; 154 155 /** 156 * Create an instance of the truer random number generator for the OS. 155 157 * 156 158 * Don't use this unless you seriously need good random numbers because most 157 * systems will have will have problems producing sufficient randomness for this 158 * and you'll end up blocking. 159 * 160 * @returns IPRT status code. 161 * @retval VERR_NOT_SUPPORTED on platforms which doesn't have this feature 162 * (Windows & OS/2). 159 * systems will have will have problems producing sufficient entropy for this 160 * and you'll end up blocking while it accumulates. 161 * 162 * @returns IPRT status code. 163 * @retval VERR_NOT_SUPPORTED on platforms which doesn't have this feature. 164 * @retval VERR_FILE_NOT_FOUND on system where the random generator hasn't 165 * been installed or configured correctly. 166 * @retval VERR_PATH_NOT_FOUND for the same reasons as VERR_FILE_NOT_FOUND. 167 * 163 168 * @param phRand Where to store the handle to the generator. 164 169 * 165 170 * @remarks Think /dev/random. 166 171 */ 167 RTDECL(int) RTRandAdvCreate PureNonPseudo(PRTRAND phRand) RT_NO_THROW;172 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW; 168 173 169 174 /**
Note:
See TracChangeset
for help on using the changeset viewer.