generator: getting really cosmetic

This commit is contained in:
Mirek Kratochvil 2013-04-21 09:59:55 +02:00
parent b367e687e6
commit e1caed83a2

View file

@ -39,7 +39,8 @@ public:
uint random (uint n) {
//rand_max is 2^32.
return ( (r.gen() << 24) | (r.gen() << 16) | (r.gen() << 8) | r.gen() ) % n;
return ( (r.gen() << 24) | (r.gen() << 16)
| (r.gen() << 8) | r.gen() ) % n;
}
};