From 8edf79149a6d00abac4d5c2cdc9fecfd948f6e96 Mon Sep 17 00:00:00 2001 From: Trung Pham <954373+pbtrung@users.noreply.github.com> Date: Tue, 22 Dec 2020 12:47:32 -0500 Subject: [PATCH] Don't change the global table variable (fixes jotfs#4) --- fastcdc_example_test.go | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/fastcdc_example_test.go b/fastcdc_example_test.go index dcbe370..6d11b5f 100644 --- a/fastcdc_example_test.go +++ b/fastcdc_example_test.go @@ -12,7 +12,6 @@ import ( ) func Example_basic() { - data := make([]byte, 10*1024*1024) rand.Seed(4542) rand.Read(data) @@ -41,13 +40,13 @@ func Example_basic() { // Output: // CHECKSUM CHUNK SIZE - // d5bb40f862d68f4c3a2682e6d433f0d7 1788060 - // 113a0aa2023d7dce6a2aac1f807b5bd2 1117240 - // 5b9147b10d4fe6f96282da481ce848ca 1180487 - // dcc4644befb599fa644635b0c5a1ea2c 1655501 - // 224db3de422ad0dd2c840e3e24e0cb03 363172 - // e071658eccda587789f1dabb6f773851 1227750 - // 215868103f0b4ea7f715e179e5b9a6c7 1451026 - // 21e65e40970ec22f5b13ddf60493b746 1150129 - // b8209a1dbef955ef64636af796450252 552395 + // dee6e6c5cff96b97879c8ccc3a0816c4 1073134 + // febbb26d9293e4f7bbbd2690a2689bb0 1475338 + // f749cff5958a66592ae9a5e1040da2e0 733274 + // 1a111ef81439612d5ea511012fc53a99 1431958 + // 7d37d2aec1ce28f52a09a74c3a6afb3c 1108001 + // 045020dd21550af5c3494aab873b865e 901625 + // ed746b6c49369f31db6fe01f783abbbc 1433591 + // 666bdd16f26cc78fe682a124be777161 1230739 + // 044df6a4f25c7817f420e12939db71cf 1098100 }