mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-14 03:03:14 +08:00
add: added a noncedistance method
This commit is contained in:
parent
6e91de5a8d
commit
a70fcfb655
1 changed files with 10 additions and 0 deletions
|
@ -141,3 +141,13 @@ uint32_t prng_successor(uint32_t x, uint32_t n)
|
|||
|
||||
return SWAPENDIAN(x);
|
||||
}
|
||||
|
||||
uint32_t prng_successor_one(uint32_t x)
|
||||
{
|
||||
SWAPENDIAN(x);
|
||||
|
||||
x = x >> 1 | (x >> 16 ^ x >> 18 ^ x >> 19 ^ x >> 21) << 31;
|
||||
|
||||
return SWAPENDIAN(x);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue