mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-27 09:21:14 -06:00
a79c987538
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. |
||
---|---|---|
.. | ||
client_test.go | ||
client.go | ||
error_test.go | ||
error.go | ||
mux_broker.go | ||
resource_provider_test.go | ||
resource_provider.go | ||
resource_provisioner_test.go | ||
resource_provisioner.go | ||
rpc_test.go | ||
rpc.go | ||
server.go | ||
ui_input_test.go | ||
ui_input.go | ||
ui_output_test.go | ||
ui_output.go |