1. I want to use a length is longer than the number of known and different ( 8 bytes), corresponding to shorter to generate length number ( 2 bytes), I want to make sure that only the two bytes of data,
2. No matter how much time the program runs, long known for a given number, generated by the short number is the same,
Such as: input: 0 x0011223344556677, can 0 xabcd, no matter how many times the program runs, as long as the input, the output is constant,
I looked under the random method, I feel could run output will be off for many times,
You help to look at, whether there is a feasible way to achieve the above requirements?
CodePudding user response:
The easiest way is that long number 16 for 2 to the power modulus canSo long number unchanged, and the result of the modulus must be also the same, and the number, the mold must also determine