We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973281c commit b929ec5Copy full SHA for b929ec5
src/semantic-router/pkg/cache/comprehensive_benchmark_test.go
@@ -33,8 +33,8 @@ func (c ContentLength) String() string {
33
// GenerateQuery generates a query with maximum semantic diversity using hash-based randomization
34
func generateQuery(length ContentLength, index int) string {
35
// Hash the index to get pseudo-random values (deterministic but well-distributed)
36
- hash := uint64(index) // #nosec G115 -- index is always positive and bounded
37
- hash = hash * 2654435761 // Knuth's multiplicative hash
+ hash := uint64(index) // #nosec G115 -- index is always positive and bounded
+ hash *= 2654435761 // Knuth's multiplicative hash
38
39
// Expanded templates for maximum diversity
40
templates := []string{
0 commit comments