mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-19 16:57:11 -04: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. |
||
|---|---|---|
| .. | ||
| client.go | ||
| client_test.go | ||
| error.go | ||
| error_test.go | ||
| mux_broker.go | ||
| resource_provider.go | ||
| resource_provider_test.go | ||
| resource_provisioner.go | ||
| resource_provisioner_test.go | ||
| rpc.go | ||
| rpc_test.go | ||
| server.go | ||
| ui_input.go | ||
| ui_input_test.go | ||
| ui_output.go | ||
| ui_output_test.go | ||