소스 검색

Add prng.Read helper function

Rod Hynes 6 년 전
부모
커밋
7fa202e909
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      psiphon/common/prng/prng.go

+ 4 - 0
psiphon/common/prng/prng.go

@@ -326,6 +326,10 @@ func (p *PRNG) Base64String(byteLength int) string {
 
 
 var p *PRNG
 var p *PRNG
 
 
+func Read(b []byte) (int, error) {
+	return p.Read(b)
+}
+
 func Int63() int64 {
 func Int63() int64 {
 	return p.Int63()
 	return p.Int63()
 }
 }