#include #include #include int main(void) { int i; u_char thingy[128]; struct timeval tv; gettimeofday(&tv, NULL); thingy[0] = (tv.tv_sec % 10000) * 3 + tv.tv_usec * 31 + \ (getpid() % 1000) * 17; for (i = 1; i < 127 ; i++) { if (thingy[i] == 0) thingy[i] = ((thingy[i - 1] + i) ^ ((getpid() % 1000) * 307)); } for (i = 0; i < 128 ; i++) { printf("element %d %d\n", i, thingy[i]); } return 0; }