mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-20 13:43:12 +00:00
bf9710fd5a
This only affects build_android, if nacl-gcc-prep is run then build/`uname -s` will be created.
16 lines
313 B
C
16 lines
313 B
C
#include "randombytes-impl.h"
|
|
|
|
unsigned char x[65536];
|
|
unsigned long long freq[256];
|
|
|
|
int main()
|
|
{
|
|
unsigned long long i;
|
|
|
|
randombytes(x,sizeof x);
|
|
for (i = 0;i < 256;++i) freq[i] = 0;
|
|
for (i = 0;i < sizeof x;++i) ++freq[255 & (int) x[i]];
|
|
for (i = 0;i < 256;++i) if (!freq[i]) return 111;
|
|
return 0;
|
|
}
|