blob: 5ccc6bc32929eea2837c6777ff70a76bdd52d1f5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* ISC license. */
#include <errno.h>
#include <skalibs/unirandom.h>
unsigned int unirandom_readnb (unirandom *u, char *s, unsigned int n)
{
if (!u->initted && !unirandom_init(u)) return 0 ;
return (*u->readnb)(&u->data, s, n) ;
}
|