test.c 313 B

123456789101112131415
  1. #include "randombytes-impl.h"
  2. unsigned char x[65536];
  3. unsigned long long freq[256];
  4. int main()
  5. {
  6. unsigned long long i;
  7. randombytes(x,sizeof x);
  8. for (i = 0;i < 256;++i) freq[i] = 0;
  9. for (i = 0;i < sizeof x;++i) ++freq[255 & (int) x[i]];
  10. for (i = 0;i < 256;++i) if (!freq[i]) return 111;
  11. return 0;
  12. }