More efficient seed handling #5
Labels
No labels
Crafting-Recipe Randomizer
General
Loot-Table Randomizer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
high priority
invalid
low priority
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Fasguy/MinecraftToolbox#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.