Changeset 45d3191988ac7622b28ba65ccbe01500fb7800e0

Show
Ignore:
Timestamp:
02/09/07 22:01:13 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1188763273 +0000
git-parent:

[29b9c7e10981399bee1a6bab2da374eb8b637a74]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1188763273 +0000
Message:

! It did say NON-PREDICTIBLE at the top of the file, didn't it?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/rand.c

    r2088dce r45d3191  
    117117 
    118118#else /* WIN32 */ 
    119 /* It would be better to use rand_s() instead of rand() but it's not possible  
    120  * while we support Win 2OOO and until it gets included in mingw */ 
    121 /* #define _CRT_RAND_S*/ 
     119#define _CRT_RAND_S 
    122120#include <stdlib.h> 
    123121 
     
    127125    { 
    128126        unsigned int val; 
    129         /*rand_s (&val);*/ 
    130         val = rand(); 
     127#if 0 
     128        rand_s (&val); 
     129#else 
     130        abort(); 
     131#endif 
    131132 
    132133        if (len < sizeof (val))