You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Considering that seed values will often not use the full 64-Bit – which probably means that more often than not the "highest" bits will be zero-padding and the entropy is in the "lowest" bits:
Wouldn't it make sense to left-shift the seed value by one bit-position, rather than OR-ing it with 1?
Note: Still guarantees that the result is odd (as the shifted value is always even and it will be added to an odd number), but rather than discarding the least-significant bit, we discard the most-significant one.
Regards,
MuldeR
The text was updated successfully, but these errors were encountered:
Hello,
regarding your seeding function:
Considering that seed values will often not use the full 64-Bit – which probably means that more often than not the "highest" bits will be zero-padding and the entropy is in the "lowest" bits:
Wouldn't it make sense to left-shift the seed value by one bit-position, rather than OR-ing it with 1?
Note: Still guarantees that the result is odd (as the shifted value is always even and it will be added to an odd number), but rather than discarding the least-significant bit, we discard the most-significant one.
Regards,
MuldeR
The text was updated successfully, but these errors were encountered: