-
-
各位大侠 下面是什么算法
-
发表于:
2012-11-15 14:17
3430
-
DWORD suanfa(DWORD given_dword){
DWORD seed;
DWORD key_radix;
DWORD keep_value2;
DWORD keep_value3;
DWORD tmpptr[3];//key的数组 事先指定好的
seed = given_dword * 100;
key_radix = (tmpptr[0] << 11)^tmpptr[0];
tmpptr[0] += tmpptr[1];
keep_value2 = tmpptr[2];
tmpptr[1] += keep_value2;
keep_value3 = tmpptr[3];
tmpptr[2] += keep_value3;
tmpptr[3] = ((((keep_value3>>19)^(keep_value3))^key_radix)^(key_radix >> 8));
return ((tmpptr[3]+keep_value2)%seed)/(100);
}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!