Ignore:
Timestamp:
Jun 8, 2010, 6:38:55 AM (11 years ago)
Author:
Herwig Bauernfeind
Message:

_divers fix for Ticket #131 and #138

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/lib/os2ea.c

    r392 r457  
    172172{
    173173    UCHAR byte = 0;
     174    int c;
     175#if 0
     176// The following routine crashes on Quadcore CPUs
    174177    CPUUTIL util;
    175     int c;
    176178
    177179    if (hDoscalls == 0) {
     
    201203        }
    202204    }
     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        }
    203213
    204214    return byte;
    205215}
    206 
    207 
    208216
    209217UCHAR randbyte()
Note: See TracChangeset for help on using the changeset viewer.