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)