Switch to UUID util

This commit is contained in:
Daniel
2020-05-26 11:11:11 +02:00
parent 025ed6d231
commit 71c9d23d68
2 changed files with 2 additions and 11 deletions

View File

@@ -6,12 +6,12 @@ import (
"sync"
"time"
"github.com/gofrs/uuid"
"github.com/tevino/abool"
"github.com/safing/portbase/config"
"github.com/safing/portbase/database/record"
"github.com/safing/portbase/log"
"github.com/safing/portbase/utils"
"github.com/safing/portmaster/intel/filterlists"
"github.com/safing/portmaster/profile/endpoints"
)
@@ -155,7 +155,7 @@ func (profile *Profile) parseConfig() error {
// New returns a new Profile.
func New() *Profile {
profile := &Profile{
ID: uuid.NewV4().String(),
ID: utils.RandomUUID("").String(),
Source: SourceLocal,
Created: time.Now().Unix(),
Config: make(map[string]interface{}),