/usr/include/skalibs/unirandom.h is in skalibs-dev 0.47-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | /* Public domain. */
#ifndef UNIRANDOM_H
#define UNIRANDOM_H
#include "surf.h"
struct randomfd
{
int fd ;
unsigned char nb : 1 ;
} ;
#define RANDOMFD_ZERO { -1, 0 }
union unirandominfo
{
SURFSchedule surf_ctx ;
struct randomfd file ;
} ;
#define UNIRANDOMINFO_ZERO { SURFSCHEDULE_ZERO }
typedef struct unirandom unirandom, *unirandom_ref, **unirandom_ref_ref ;
struct unirandom
{
unsigned int (*readb) (union unirandominfo *, char *, unsigned int) ;
unsigned int (*readnb) (union unirandominfo *, char *, unsigned int) ;
int (*init) (union unirandominfo *) ;
int (*finish) (union unirandominfo *) ;
union unirandominfo data ;
unsigned char initted : 1 ;
} ;
#define UNIRANDOM_ZERO { 0, 0, 0, 0, UNIRANDOMINFO_ZERO, 0 }
extern int unirandom_register_devrandom (unirandom_ref) ;
extern int unirandom_register_devurandom (unirandom_ref) ;
extern int unirandom_register_hasegd (unirandom_ref) ;
extern int unirandom_register_surf (unirandom_ref) ;
extern int unirandom_init (unirandom_ref) ;
extern unsigned int unirandom_readb (unirandom_ref, char *, unsigned int) ;
extern unsigned int unirandom_readnb (unirandom_ref, char *, unsigned int) ;
extern int unirandom_finish (unirandom_ref) ;
#endif
|