(no commit message provided)

This commit is contained in:
Prad Nukala
2024-07-05 22:20:13 -04:00
committed by Prad Nukala (aider)
commit 5fd43dfd6b
457 changed files with 115535 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package random_test
import (
"testing"
"github.com/onsonr/hway/crypto/subtle/random"
)
func TestGetRandomBytes(t *testing.T) {
for i := 0; i <= 32; i++ {
buf := random.GetRandomBytes(uint32(i))
if len(buf) != i {
t.Errorf("length of the output doesn't match the input")
}
}
}