如果它存在于代码中,我正在寻找以下内容(任何语言都可以,但最好是 c#):
a,b,limit,key : integers
0< a, b, < limit (fits in less than int32)
b = forth(a, limit, key)
a = back (b, limit, key)
我需要一些看起来有点随机的东西,(=)
而且(xor)
还不够好。
Now I looked into block ciphers and pseudorandom generators and like but it's always about encryption and security and speed and uses the whole size of the integer. I don't care about any of those. All I need is a bijection on the domain where average of forth(a+epsilon) >> b+epsilon