Skip to content

Commit b929ec5

Browse files
committed
review feedback
Signed-off-by: Huamin Chen <[email protected]>
1 parent 973281c commit b929ec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/semantic-router/pkg/cache/comprehensive_benchmark_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ func (c ContentLength) String() string {
3333
// GenerateQuery generates a query with maximum semantic diversity using hash-based randomization
3434
func generateQuery(length ContentLength, index int) string {
3535
// 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
36+
hash := uint64(index) // #nosec G115 -- index is always positive and bounded
37+
hash *= 2654435761 // Knuth's multiplicative hash
3838

3939
// Expanded templates for maximum diversity
4040
templates := []string{

0 commit comments

Comments
 (0)