Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

replace uuid package due to security issue #7

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions epub.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"path/filepath"
"strings"

"github.com/satori/go.uuid"
"github.com/google/uuid"
)

// ErrFilenameAlreadyUsed is thrown by AddCSS, AddFont, AddImage, or AddSection
Expand Down Expand Up @@ -131,7 +131,7 @@ func NewEpub(title string) *Epub {
e.pkg = newPackage()
e.toc = newToc()
// Set minimal required attributes
e.SetIdentifier(urnUUIDPrefix + uuid.NewV4().String())
e.SetIdentifier(urnUUIDPrefix + uuid.New().String())
e.SetLang(defaultEpubLang)
e.SetTitle(title)

Expand Down