summaryrefslogtreecommitdiff
path: root/mkvlib
diff options
context:
space:
mode:
authorb5f0d6c3 <[email protected]>2022-05-02 16:33:57 +0800
committerb5f0d6c3 <[email protected]>2022-05-02 16:33:57 +0800
commitc61c5e0c1132e68ff7f22c0fb60ee2256fe8b21f (patch)
treecec9a2b2794979c43401cba5d05c1549c70395fd /mkvlib
parent2094fe3fb65e6b4dd54542cc7c7e6dbe983314d6 (diff)
update mkvlib:fix bug
Diffstat (limited to 'mkvlib')
-rw-r--r--mkvlib/shared.go2
-rw-r--r--mkvlib/utils.go12
2 files changed, 1 insertions, 13 deletions
diff --git a/mkvlib/shared.go b/mkvlib/shared.go
index 759670a..0b80c52 100644
--- a/mkvlib/shared.go
+++ b/mkvlib/shared.go
@@ -11,7 +11,7 @@ import (
)
const libName = "mkvlib"
-const libVer = "v1.7.6"
+const libVer = "v1.7.7"
const LibFName = libName + " " + libVer
diff --git a/mkvlib/utils.go b/mkvlib/utils.go
index e6c105c..590ed2e 100644
--- a/mkvlib/utils.go
+++ b/mkvlib/utils.go
@@ -202,19 +202,7 @@ func stringDeduplication(str string) string {
return _s
}
-var mRandStrings = make(map[string]bool)
-
func randomStr(l int) string {
- for {
- str := _randomStr(l)
- if !mRandStrings[str] {
- mRandStrings[str] = true
- return str
- }
- }
-}
-
-func _randomStr(l int) string {
str := "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
bytes := []byte(str)
var result []byte