Generate PRBS

I remember seeing PRBS code for arduino | Forum for Electronics the other day. I'm sure this question was posted earlier in the week, but I can't find it now.