Skip to content

Commit

Permalink
Don't change the global table variable (fixes jotfs#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbtrung authored Dec 22, 2020
1 parent 6229c7c commit 8edf791
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions fastcdc_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
)

func Example_basic() {

data := make([]byte, 10*1024*1024)
rand.Seed(4542)
rand.Read(data)
Expand Down Expand Up @@ -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
}

0 comments on commit 8edf791

Please sign in to comment.