More efficient seed handling #5
Labels
Crafting-Recipe Randomizer
This is for the Crafting-Recipe Randomizer
enhancement
New feature or request
Loot-Table Randomizer
This is for the Loot-Table Randomizer
low priority
This can be done whenever
Milestone
JavaScript provides 53 integer-safe bits for numbers, which can be fully utilized with a custom number input. A string input however only provides a 32 bit hash with the current hashing implementation. Utilizing all 53 bits reduces the chance of collisions. It may be worth looking into cyrb53 (https://github.com/bryc/code/blob/master/jshash/experimental/cyrb53.js) for this.
This will be a big breaking change and will cause old string-based seeds to no longer produce the same output
Original title:
Find solution for the seed input to support the full number rangeOriginal Description:
JavaScript provides 53 bits of integer-safety, this is not enough, if i want to emulate how Minecraft handles seed inputs.A point of interest might be BigInt, but i don't think that this is suitable for inputting seeds.
The text was updated successfully, but these errors were encountered: