skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

tryarc4random_addrandom.c (469B)


      1 /* ISC license. */
      2 
      3 #undef _POSIX_C_SOURCE
      4 #undef _XOPEN_SOURCE
      5 
      6 #ifndef __EXTENSIONS__
      7 #define __EXTENSIONS__
      8 #endif
      9 #ifndef _GNU_SOURCE
     10 #define _GNU_SOURCE
     11 #endif
     12 #ifndef _BSD_SOURCE
     13 #define _BSD_SOURCE
     14 #endif
     15 #ifndef _NETBSD_SOURCE
     16 #define _NETBSD_SOURCE
     17 #endif
     18 #ifndef _INCOMPLETE_XOPEN_C063
     19 #define _INCOMPLETE_XOPEN_C063
     20 #endif
     21 
     22 #include <stdlib.h>
     23 
     24 int main (void)
     25 {
     26   unsigned char *blah = (unsigned char *)"" ;
     27   arc4random_addrandom(blah, 1) ;
     28   return 0 ;
     29 }