1 #include <assert.h> 2 #include <unistd.h> 3 main()4int main() { 5 char buf[256] = {0}; 6 int r = getentropy(buf, 256); 7 assert(r == 0); 8 9 for (int i = 0; i < 256; i++) { 10 if (buf[i] != 0) { 11 return 0; 12 } 13 } 14 15 // if this ever is reached, we either have a bug or should buy a lottery 16 // ticket 17 return 1; 18 } 19