mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-01 01:16:40 +00:00
chore(utils): remove deprecated MakeRandomString function
This commit is contained in:
@@ -20,10 +20,12 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestMakeRandomString(t *testing.T) {
|
||||
rand := MakeRandomString(32)
|
||||
func TestCryptoRandomString(t *testing.T) {
|
||||
rand, err := CryptoRandomString(32)
|
||||
require.NoError(t, err)
|
||||
assert.NotEqual(t, "loremipsuim", rand)
|
||||
assert.Len(t, rand, 32)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user