Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Oct 26, 2023
1 parent ca35f30 commit d8dc965
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions api/feature.go
Original file line number Diff line number Diff line change
@@ -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{}
Expand Down Expand Up @@ -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
}

0 comments on commit d8dc965

Please sign in to comment.