mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 02:30:45 +00:00
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