Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
| ... | ... |
@@ -514,7 +514,7 @@ func GenerateRandomID() string {
|
| 514 | 514 |
// if we try to parse the truncated for as an int and we don't have |
| 515 | 515 |
// an error then the value is all numberic and causes issues when |
| 516 | 516 |
// used as a hostname. ref #3869 |
| 517 |
- if _, err := strconv.Atoi(TruncateID(value)); err == nil {
|
|
| 517 |
+ if _, err := strconv.ParseInt(TruncateID(value), 10, 64); err == nil {
|
|
| 518 | 518 |
continue |
| 519 | 519 |
} |
| 520 | 520 |
return value |