diff --git a/main.c b/main.c index 5b8fd5c..166c64d 100644 --- a/main.c +++ b/main.c @@ -1,10 +1,12 @@ #include #include +#include int main() { + srand(time(NULL)); while (1) { void* temp = malloc(1024); - *((long int*) temp) = 1024; + *((long int*) temp) = rand(); if (temp == NULL) { printf("Memory is full\n"); break; diff --git a/mian b/mian new file mode 100755 index 0000000..29eb40a Binary files /dev/null and b/mian differ