Correct an issue in foundry.utils.randomID with double-weight on the "9" character. #7877
Closed
6 tasks done
Labels
Milestone
What happened?
foundry.utils.randomID
is documented to generate IDs of the length given as parameter. However, it always creates IDs of length 16.Additionally, the possible characters contain
9
twice, so9
is slightly more likely in the generated ids than any other character.The current implementation is
but it should probably be something like
instead.
What ways of accessing Foundry can you encounter this issue in?
Reproduction Steps
foundry.utils.randomID(1)
What core version are you reporting this for?
Version 10 Testing 4 (build 278)
Relevant log output
No response
Bug Checklist
The text was updated successfully, but these errors were encountered: