From f1c4df89997f15611987cde972ed654b677e161d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Wed, 31 Jan 2018 15:03:22 +0100 Subject: [PATCH] fix pin test on windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License: MIT Signed-off-by: Ɓukasz Magiera --- pin/pin_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pin/pin_test.go b/pin/pin_test.go index 3652ef8e7..c0137a0d3 100644 --- a/pin/pin_test.go +++ b/pin/pin_test.go @@ -16,10 +16,12 @@ import ( cid "gx/ipfs/QmcZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid" ) +var rand = util.NewTimeSeededRand() + func randNode() (*mdag.ProtoNode, *cid.Cid) { nd := new(mdag.ProtoNode) nd.SetData(make([]byte, 32)) - util.NewTimeSeededRand().Read(nd.Data()) + rand.Read(nd.Data()) k := nd.Cid() return nd, k }