Changeset 457 for branches/samba-3.0/source/lib
- Timestamp:
- Jun 8, 2010, 8:38:55 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/lib/os2ea.c
r392 r457 172 172 { 173 173 UCHAR byte = 0; 174 int c; 175 #if 0 176 // The following routine crashes on Quadcore CPUs 174 177 CPUUTIL util; 175 int c;176 178 177 179 if (hDoscalls == 0) { … … 201 203 } 202 204 } 205 #endif 206 // SC's randomizer 207 208 ULONG ulrandom; 209 ulrandom = random(); 210 for (c = 0; c < sizeof(ulrandom); c++) { 211 byte ^= ((UCHAR *)&ulrandom)[c]; 212 } 203 213 204 214 return byte; 205 215 } 206 207 208 216 209 217 UCHAR randbyte()
Note:
See TracChangeset
for help on using the changeset viewer.