diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2019-01-27 15:10:25 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2019-01-27 15:10:25 +0800 |
commit | 2423de33a66f506e33a674dfdf50bbb1ea8d1ae0 (patch) | |
tree | 0e580f9a1b0196fd1cf387d27c52fedc78ff2131 /ffi/go | |
parent | 3900a6ec637be56529972e17553e2b301832da46 (diff) | |
download | dexon-bls-2423de33a66f506e33a674dfdf50bbb1ea8d1ae0.tar dexon-bls-2423de33a66f506e33a674dfdf50bbb1ea8d1ae0.tar.gz dexon-bls-2423de33a66f506e33a674dfdf50bbb1ea8d1ae0.tar.bz2 dexon-bls-2423de33a66f506e33a674dfdf50bbb1ea8d1ae0.tar.lz dexon-bls-2423de33a66f506e33a674dfdf50bbb1ea8d1ae0.tar.xz dexon-bls-2423de33a66f506e33a674dfdf50bbb1ea8d1ae0.tar.zst dexon-bls-2423de33a66f506e33a674dfdf50bbb1ea8d1ae0.zip |
don't check buf[n - 1] of test
Diffstat (limited to 'ffi/go')
-rw-r--r-- | ffi/go/bls/bls_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ffi/go/bls/bls_test.go b/ffi/go/bls/bls_test.go index a2789f3..b020682 100644 --- a/ffi/go/bls/bls_test.go +++ b/ffi/go/bls/bls_test.go @@ -468,7 +468,8 @@ func testReadRand(t *testing.T) { sec.SetByCSPRNG() buf := sec.GetLittleEndian() fmt.Printf("(SeqRead) buf=%x\n", buf) - for i := 0; i < len(buf); i++ { + for i := 0; i < len(buf) - 1; i++ { + // ommit buf[len(buf) - 1] because it may be masked if buf[i] != byte(i) { t.Fatal("buf") } |