So wrong

This is so wrong! Want to leave a logic bomb in program? Hide this in a header file somewhere and watch the dev team go crazy trying to track down the problems it creates.

#define sizeof(x) (rand() % sizeof(x) + 1)

Via a comment on The Daily WTF.

Filed away for use someday when I’m feeling eeeeeeeevil.

ctrl-x ctrl-s