initial addition of essential crypto, encoders, workflows and LLM instructions
This commit is contained in:
13
pkg/utils/fastequal.go
Normal file
13
pkg/utils/fastequal.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package utils
|
||||
|
||||
func FastEqual(a, b []byte) (same bool) {
|
||||
if len(a) != len(b) {
|
||||
return
|
||||
}
|
||||
for i, v := range a {
|
||||
if v != b[i] {
|
||||
return
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user