From d8dc96504d0a7d0f84ed151138ad0526d8523279 Mon Sep 17 00:00:00 2001 From: sjaanus Date: Thu, 26 Oct 2023 16:01:38 +0300 Subject: [PATCH] Fix --- api/feature.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api/feature.go b/api/feature.go index 859671c..58cbbfa 100644 --- a/api/feature.go +++ b/api/feature.go @@ -1,14 +1,12 @@ package api import ( - "fmt" "math/rand" "strconv" "time" "github.com/Unleash/unleash-client-go/v3/context" "github.com/Unleash/unleash-client-go/v3/internal/strategies" - "github.com/twmb/murmur3" ) type ParameterMap map[string]interface{} @@ -149,7 +147,3 @@ func getSeed(ctx *context.Context, stickiness string) string { } return strconv.Itoa(rand.Intn(10000)) } - -func getNormalizedNumber(identifier, groupId string, normalizer int) uint32 { - return (murmur3.Sum32([]byte(fmt.Sprintf("%s:%s", groupId, identifier))) % uint32(normalizer)) + 1 -}