summaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-11 05:11:58 -0500
committerUnknwon <u@gogs.io>2016-03-11 05:11:58 -0500
commit5267dce21023802818b0c0c16ba2ca47c146e1b5 (patch)
treea6daf82fff4e006c2fe6476db6854ce863bce5de /modules/base
parent97c48da49fb8493059d5b52e435fadc508c78966 (diff)
downloadgitea-5267dce21023802818b0c0c16ba2ca47c146e1b5.tar.gz
gitea-5267dce21023802818b0c0c16ba2ca47c146e1b5.zip
Fix ref comment from commit create empty feed
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/tool.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go
index 45d0aea5bc..a426ca99b0 100644
--- a/modules/base/tool.go
+++ b/modules/base/tool.go
@@ -97,6 +97,7 @@ func GetRandomString(n int, alphabets ...byte) string {
}
// http://code.google.com/p/go/source/browse/pbkdf2/pbkdf2.go?repo=crypto
+// FIXME: use https://godoc.org/golang.org/x/crypto/pbkdf2?
func PBKDF2(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte {
prf := hmac.New(h, password)
hashLen := prf.Size()