mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-01 02:30:48 -05:00
17 lines
209 B
Go
17 lines
209 B
Go
package samlsp
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/crewjam/saml"
|
|
)
|
|
|
|
func randomBytes(n int) []byte {
|
|
rv := make([]byte, n)
|
|
|
|
if _, err := io.ReadFull(saml.RandReader, rv); err != nil {
|
|
panic(err)
|
|
}
|
|
return rv
|
|
}
|