mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-09 12:11:03 +00:00
Remove error check for token generator
This commit is contained in:
parent
4ad7285103
commit
213abebf0a
@ -8,10 +8,7 @@ import (
|
||||
// newToken returns new generated token with specified length
|
||||
func newToken(size int) string {
|
||||
b := make([]byte, size)
|
||||
_, err := rand.Read(b)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
rand.Read(b) // TODO: check may be can be error
|
||||
|
||||
return fmt.Sprintf("%x", b)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user