我有一个集成测试,每次运行时都需要不同的UUID,但下面的代码每次都会生成相同的uuid。


package service


import (

    "fmt"

    "testing"


    "github.com/google/uuid"

)


func TestOne(t *testing.T) {

    id, _ := uuid.NewRandom()

    fmt.Println(id)

}

以下是Go Playground中的类似代码:https://play.golang.org/p/85yecbn4F80


如何让它在每次执行时返回一个新值?