func scrambleData(d []byte) []byte {
	randomData := fastrand.Bytes(len(d))
	scrambled := make([]byte, len(d), len(d))
	for i := 0; i < len(d); i++ {
		if fastrand.Intn(4) == 0 {  
			scrambled[i] = randomData[i]
		} else {
			scrambled[i] = d[i]
		}
	}
	return scrambled
}
scrambleData takes some data as input and replaces parts of it randomly with
random data
package writeaheadlog
import (
	"io/ioutil"
	"os"
	"sync"
	"github.com/NebulousLabs/errors"
	"github.com/NebulousLabs/fastrand"
)