// NewRandomHashlink returns a randomly generated hashlink.
NewRandomHashlink returns a randomly generated hashlink.
// NewRandomHashlink returns a randomly generated hashlink .
func NewRandomHashlink(t *testing.T) *url.URL {
	t.Helper()
	tm := time.Now()
	randomBytes, err := json.Marshal(tm)
	require.NoError(t, err)
	hl, err := hashlink.New().CreateHashLink(randomBytes, nil)
	require.NoError(t, err)
	return testutil.MustParseURL(hl)
}
func NewRandomHashlink ( t * testing . T ) * url . URL { t . Helper ( ) tm := time . Now ( ) randomBytes , err := json . Marshal ( tm ) require . NoError ( t , err ) hl , err := hashlink . New ( ) . CreateHashLink ( randomBytes , nil ) require . NoError ( t , err ) return testutil . MustParseURL ( hl ) }
NewRandomHashlink returns a randomly generated hashlink.
NewRandomHashlink returns a randomly generated hashlink .