Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hh (0.12 sec)

  1. docs/debugging/xl-meta/main.go

    			const magicHighwayHash256Key = "\x4b\xe7\x34\xfa\x8e\x23\x8a\xcd\x26\x3e\x83\xe6\xbb\x96\x85\x52\x04\x0f\x93\x5d\xa3\x9f\x44\x14\x97\xe0\x9d\x13\x22\xde\x36\xa0"
    
    			hh, _ := highwayhash.New([]byte(magicHighwayHash256Key))
    			hh.Write(data)
    			got := hh.Sum(nil)
    			if bytes.Equal(want, got) {
    				s += ", \"bitrot_valid\": true"
    			} else {
    				s += ", \"bitrot_valid\": false"
    			}
    			s += "}"
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  2. internal/logger/logger.go

    	}
    	return trace
    }
    
    // HashString - return the highway hash of the passed string
    func HashString(input string) string {
    	hh, _ := highwayhash.New(magicHighwayHash256Key)
    	hh.Write([]byte(input))
    	return hex.EncodeToString(hh.Sum(nil))
    }
    
    // LogAlwaysIf prints a detailed error message during
    // the execution of the server.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
Back to top