(target string)
| 19 | } |
| 20 | |
| 21 | func newCredentialBase(target string) *credentialBase { |
| 22 | return &credentialBase{ |
| 23 | target: target, |
| 24 | createTime: time.Now(), |
| 25 | salt: makeSalt(), |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func makeSalt() []byte { |
| 30 | result := make([]byte, 16) |
no test coverage detected