Speed up random number seeding

This PR deals with speeding up random number seeding (https://github.com/lisa-lab/pylearn2/issues/298). It's basically a faster implementation of matVecModM.