All pastes #2106377 Raw Edit

Mine

public c v1 · immutable
#2106377 ·published 2012-01-26 11:32 UTC
rendered paste body
#include <stdio.h>#include <stdlib.h>#define SIZE (100 * 1024 * 1024)#define REPEAT (1024 * 1024)intmain(){    char *mem = malloc(SIZE);    if (!mem) {	printf("out of mem\n");	return 1;    }    for (int i = 0; i < REPEAT; i++) {	int x = rand() / SIZE;	mem[x] = 0;    }    return 0;}