Perturb malloc so that we spot bugs quicker
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 9 Nov 2010 22:04:07 +0000 (14:04 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sun, 2 Jan 2011 20:36:02 +0000 (12:36 -0800)
.bashrc

diff --git a/.bashrc b/.bashrc
index b0df65b..5e07d40 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -47,3 +47,6 @@ case $- in
        # non-interactive shell
        ;;
 esac
+
+# Perturb malloc so that we spot bugs quicker!
+export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))