This commit is contained in:
didier.amyot committed 2014-10-14 06:31:36 -07:00
1 parent 4897e8d307
commit 4aca3324c9
10 files changed
+401 -17

No files matched your search

+10
View File
@@ -1,8 +1,10 @@
package helper
import (
"bytes"
"crypto/rsa"
"encoding/binary"
"io"
"math/big"
"math/rand"
)
@@ -64,6 +66,14 @@ func (this *MockIoWriter) Bytes() []byte {
return this.state
}
func (this *MockIoWriter) Reader() io.Reader {
return bytes.NewReader(this.state)
}
func (this *MockIoWriter) ReaderAt() io.ReaderAt {
return bytes.NewReader(this.state)
}
func Range(length int) []byte {
ret := make([]byte, length)
for i, _ := range ret {