mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Merge pull request #226 from tomwilkie/224-id
Seed random so different apps have different ids.
This commit is contained in:
@@ -61,6 +61,7 @@ func main() {
|
||||
log.SetOutput(f)
|
||||
}
|
||||
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
id := strconv.FormatInt(rand.Int63(), 16)
|
||||
log.Printf("app starting, version %s, id %s", version, id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user