use UUIDs now

This commit is contained in:
2025-03-07 14:53:35 -05:00
parent 235299b65d
commit 4389660f65
3 changed files with 9 additions and 3 deletions

View File

@@ -4,6 +4,8 @@ import (
"maxwarden/entries"
"maxwarden/security"
"os"
"github.com/google/uuid"
)
func main() {
@@ -13,7 +15,7 @@ func main() {
testData := []entries.Secret{}
for range 10 {
dummyData := entries.Secret{ID: security.RandBase58String(32), Description: "Twitter / X.com", URL: "https://x.com", Notes: "2fa is enabled for this account.", Username: "@johntwitter", Password: "##CORRECT_HORSE_BATTERY_STAPLE_51"}
dummyData := entries.Secret{ID: uuid.New().String(), Description: "Twitter / X.com", URL: "https://x.com", Notes: "2fa is enabled for this account.", Username: "@johntwitter", Password: "##CORRECT_HORSE_BATTERY_STAPLE_51"}
testData = append(testData, dummyData)
}