diff --git a/internal/utils/hash.go b/internal/utils/hash.go index fc1a3c730568..4b0b2e4b41b0 100644 --- a/internal/utils/hash.go +++ b/internal/utils/hash.go @@ -14,10 +14,10 @@ func Hash(s string) uint32 { } // BuildHash is building the hash based on the different properties of the evaluation. -func BuildHash(flagName string, bucketingKey string, max uint32) uint32 { - // this is not supposed to happen, but to avoid a crash if max is 0 we are returning 0 - if max == uint32(0) { +func BuildHash(flagName string, bucketingKey string, maxPercentage uint32) uint32 { + // this is not supposed to happen, but to avoid a crash if maxPercentage is 0 we are returning 0 + if maxPercentage == uint32(0) { return uint32(0) } - return Hash(flagName+bucketingKey) % max + return Hash(flagName+bucketingKey) % maxPercentage } diff --git a/openfeature/provider_tests/dotnet-integration-tests/ProviderTests/ProviderTests.csproj b/openfeature/provider_tests/dotnet-integration-tests/ProviderTests/ProviderTests.csproj index c950ec2f98b3..cad986dbb0e0 100644 --- a/openfeature/provider_tests/dotnet-integration-tests/ProviderTests/ProviderTests.csproj +++ b/openfeature/provider_tests/dotnet-integration-tests/ProviderTests/ProviderTests.csproj @@ -10,7 +10,7 @@ - + diff --git a/website/static/sdk-versions.json b/website/static/sdk-versions.json index 92cda30091e4..200808e8f4c6 100644 --- a/website/static/sdk-versions.json +++ b/website/static/sdk-versions.json @@ -1 +1 @@ -{"maven":{"sdk":"1.12.2","providerKt":"0.1.0","providerJava":"0.3.0","android":"0.3.0"},"npm":{"core":"1.5.0","webSDK":"1.3.2","providerServer":"0.7.3","providerWeb":"0.2.1"},"pypi":{"sdk":"0.7.2","provider":"0.2.1"},"nuget":{"sdk":"2.0.0","provider":"0.2.0"},"go":{"provider":"v0.2.1","sdk":"v1.13.1"}} \ No newline at end of file +{"maven":{"sdk":"1.12.2","providerKt":"0.1.0","providerJava":"0.3.0","android":"0.3.0"},"npm":{"core":"1.5.0","serverSDK":"1.16.2","providerServer":"0.7.3","providerWeb":"0.2.1"},"pypi":{"sdk":"0.7.2","provider":"0.2.1"},"nuget":{"sdk":"2.0.0","provider":"0.2.0"},"go":{"provider":"v0.2.1","sdk":"v1.13.1"}} \ No newline at end of file