|
@@ -3,6 +3,8 @@
|
|
|
#include <stdlib.h>
|
|
|
#include <string.h>
|
|
|
#include <time.h>
|
|
|
+#include <sys/types.h>
|
|
|
+#include <unistd.h>
|
|
|
|
|
|
#define CELLS_COUNT 3000
|
|
|
//#define EVENTS_MULTIPLIER 6
|
|
@@ -22,7 +24,7 @@ int main(int argc, char *argv[]) {
|
|
|
long cells[CELLS_COUNT];
|
|
|
memset(cells, 0, sizeof(cells));
|
|
|
|
|
|
- srand((unsigned) time(NULL));
|
|
|
+ srand((unsigned) time(NULL) ^ getpid());
|
|
|
|
|
|
for (int i = 0; i < CELLS_COUNT*events_multiplier; i++) {
|
|
|
long value = rand() % CELLS_COUNT;
|