remove entropy from packet packer

This commit is contained in:
Lucas Clemente
2016-08-30 21:46:40 +02:00
parent a4d4506f31
commit 6bb89d4902
4 changed files with 12 additions and 129 deletions

View File

@@ -174,24 +174,6 @@ var _ = Describe("Utils", func() {
})
})
Context("Rand", func() {
It("returns either true or false", func() {
countTrue := 0
countFalse := 0
for i := 0; i < 100; i++ {
val, err := RandomBit()
Expect(err).NotTo(HaveOccurred())
if val {
countTrue++
} else {
countFalse++
}
}
Expect(countTrue).ToNot(BeZero())
Expect(countFalse).ToNot(BeZero())
})
})
Context("ReadUintN", func() {
It("reads n bytes", func() {
m := map[uint8]uint64{