From bafdabf556c5d8e0fcf3f5640c8e4a74768ece6e Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Wed, 4 Aug 2021 22:08:23 -0400 Subject: [PATCH] Update Reed-Solomon --- src/unstable/Picocrypt.go | 59 ++++++++++++++++++++++++--------------- 1 file changed, 37 insertions(+), 22 deletions(-) diff --git a/src/unstable/Picocrypt.go b/src/unstable/Picocrypt.go index ca57f9e..7ae278a 100644 --- a/src/unstable/Picocrypt.go +++ b/src/unstable/Picocrypt.go @@ -1265,25 +1265,17 @@ func work(){ for i:=0;i<1048576;i+=128{ tmp := data[i:i+128] tmp = rsEncode(rs128,tmp) - /*for _,j := range tmp{ - _data = append(_data,j) - }*/ _data = append(_data,tmp...) } }else{ chunks := math.Floor(float64(len(data))/128) + fmt.Println("chunks",chunks) for i:=0;float64(i)