diff options
Diffstat (limited to 'vendor/github.com/openzipkin/zipkin-go-opentracing/util.go')
-rw-r--r-- | vendor/github.com/openzipkin/zipkin-go-opentracing/util.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/vendor/github.com/openzipkin/zipkin-go-opentracing/util.go b/vendor/github.com/openzipkin/zipkin-go-opentracing/util.go deleted file mode 100644 index 270661502..000000000 --- a/vendor/github.com/openzipkin/zipkin-go-opentracing/util.go +++ /dev/null @@ -1,25 +0,0 @@ -package zipkintracer - -import ( - "math/rand" - "sync" - "time" -) - -var ( - seededIDGen = rand.New(rand.NewSource(time.Now().UnixNano())) - // The golang rand generators are *not* intrinsically thread-safe. - seededIDLock sync.Mutex -) - -func randomID() uint64 { - seededIDLock.Lock() - defer seededIDLock.Unlock() - return uint64(seededIDGen.Int63()) -} - -func randomID2() (uint64, uint64) { - seededIDLock.Lock() - defer seededIDLock.Unlock() - return uint64(seededIDGen.Int63()), uint64(seededIDGen.Int63()) -} |