diff options
Diffstat (limited to '')
-rw-r--r-- | silly-malloc/teehee.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/silly-malloc/teehee.c b/silly-malloc/teehee.c index 635a413..ed92eb9 100644 --- a/silly-malloc/teehee.c +++ b/silly-malloc/teehee.c @@ -12,9 +12,9 @@ extern void *malloc (size_t size) { if (!real_malloc) return NULL; // lmao srand (time (NULL)); - int val = rand () % 3; + int val = (rand () % 2)+1; if (val > 1) { - long loss = rand () % (int) size; + long loss = (rand () % (int) size)+5; return real_malloc (size - loss); } else { return real_malloc (size); |