From 06adb4c9ae45f51b7abd36c2cd4fd5cbf9e1a471 Mon Sep 17 00:00:00 2001 From: Peter Vessenes Date: Thu, 9 Jan 2014 21:23:19 -0800 Subject: [PATCH] fix N being overwritten by BigInt.Div functionality --- dagger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dagger.go b/dagger.go index 8509232a23..a90121b484 100644 --- a/dagger.go +++ b/dagger.go @@ -115,7 +115,7 @@ func Sum(sha hash.Hash) []byte { func (dag *Dagger) Eval(N *big.Int) *big.Int { pow := BigPow(2, 26) - dag.xn = N.Div(N, pow) + dag.xn = pow.Div(N, pow) sha := sha3.NewKeccak224() sha.Reset()