3f1c9698a8e3b4f394e5f1da5dd7a361affdad94 — Sam Whited 5 years ago 570e922
Minor updates to internal package comments

Update canonical import path of saslerr
Add TODO on idgen code
2 files changed, 5 insertions(+), 1 deletions(-)

M internal/idgen.go
M internal/saslerr/errors.go
M internal/idgen.go => internal/idgen.go +4 -0
@@ 9,6 9,10 @@ import (

// TODO: This will be called a lot, and probably needs to be faster than we can
//       get when reading from getrandom(2). Should we use a fast userspace
//       CSPRNG and just seed with data from the OS?

// RandomID generates a new random identifier of the given length. If the OS's
// entropy pool isn't initialized, or we can't generate random numbers for some
// other reason, panic.

M internal/saslerr/errors.go => internal/saslerr/errors.go +1 -1
@@ 4,7 4,7 @@

// Package saslerr provides error conditions for the XMPP profile of SASL as
// defined by RFC 6120 §6.5.
package saslerr
package saslerr // import "mellium.im/xmpp/internal/saslerr"

// TODO(ssw): I think these errors should really be created via code generation
//            in case more are added in the future and so that we can store them