From 7abdd30a878efb3673ce4dfe0070570a6c9444c8 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 12 Feb 2018 16:44:35 -0800 Subject: [PATCH] routing: correct recent type change in heap_test.go --- routing/heap_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/heap_test.go b/routing/heap_test.go index 2aa3ba48..2ada4232 100644 --- a/routing/heap_test.go +++ b/routing/heap_test.go @@ -26,7 +26,7 @@ func TestHeapOrdering(t *testing.T) { sortedEntries := make([]nodeWithDist, 0, numEntries) for i := 0; i < numEntries; i++ { entry := nodeWithDist{ - dist: prand.Float64(), + dist: prand.Int63(), } heap.Push(&nodeHeap, entry)