Skip to content

Commit efe92fd

Browse files
authored
refactor: drop redundant int64 in newrandomgenerator (#1256)
1 parent a2abb9e commit efe92fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/util/random.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type RandomGenerator struct {
2828

2929
// NewRandomGenerator creates a RandomGenerator.
3030
func NewRandomGenerator(seed int64) RandomGenerator {
31-
return RandomGenerator{rand.New(rand.NewSource(int64(seed)))}
31+
return RandomGenerator{rand.New(rand.NewSource(seed))}
3232
}
3333

3434
// UniformVector makes a vec filled with uniform random floats,

0 commit comments

Comments
 (0)