mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-03 07:00:28 -05:00
As discussed with @mitchellh and @phinze we don’t need to randomize in order to get infinite ID’s. When we hit the highest possible number and add `1` it will just wrap back to `0`, which is just fine with regards to how Terraform works and uses these ID’s. Tested this by setting the initial value of `m.nextId` to `4294967293` where the maximum is `4294967295 `. So with some additional logging it clearly showed it wrapped and continued without any issues.