aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/openzipkin/zipkin-go-opentracing/util.go
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2019-03-03 11:56:26 -0800
committerGravatar GitHub <noreply@github.com> 2019-03-03 11:56:26 -0800
commit9d39ea51a7774cfbc680a99d9deafffecc26e295 (patch)
tree1187c5220082626e187ec4f37d486f2ceaa576b0 /vendor/github.com/openzipkin/zipkin-go-opentracing/util.go
parent39d94835ee6198d63e086e0b0c90b8ed347884b7 (diff)
downloadcoredns-9d39ea51a7774cfbc680a99d9deafffecc26e295.tar.gz
coredns-9d39ea51a7774cfbc680a99d9deafffecc26e295.tar.zst
coredns-9d39ea51a7774cfbc680a99d9deafffecc26e295.zip
Add `go mod` support (#2503)
* Remove vendor and go-dep Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add go.mod Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Update Makefile and .travis.yml Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'vendor/github.com/openzipkin/zipkin-go-opentracing/util.go')
-rw-r--r--vendor/github.com/openzipkin/zipkin-go-opentracing/util.go25
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())
-}