I'll post it here
#define rdt(timer) ;asm volatile("rdtsc\n\t":"=A"(timer)); // unsigned long long timer
inline uc rndbyte(void){
ull tmp;rdt(tmp);uc a,c,b,d;a=tmp&0xFF;d=a%5;if(d<3){d++;}
rdt(tmp);b=tmp&0xFF;d=(d*(b%5))^a;if(d>10){d-=10;};
rdt(tmp);c=tmp&0xFF;if(d&1){return a^b^c;}else{return b^c^a;}}
_____________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum:
http://etastrum.phpbb3now.com
Writing is not a profession but a vocation of unhappiness. I don't think an artist can ever be happy.