mirror of
https://github.com/logos-storage/nim-bearssl.git
synced 2026-01-07 16:03:09 +00:00
parent
ff0b47ed80
commit
a806cbfab5
@ -1,7 +1,7 @@
|
|||||||
mode = ScriptMode.Verbose
|
mode = ScriptMode.Verbose
|
||||||
|
|
||||||
packageName = "bearssl"
|
packageName = "bearssl"
|
||||||
version = "0.2.2"
|
version = "0.2.3"
|
||||||
author = "Status Research & Development GmbH"
|
author = "Status Research & Development GmbH"
|
||||||
description = "BearSSL wrapper"
|
description = "BearSSL wrapper"
|
||||||
license = "MIT or Apache License 2.0"
|
license = "MIT or Apache License 2.0"
|
||||||
|
|||||||
@ -20,7 +20,7 @@ suite "random":
|
|||||||
v2 != default(array[1024, byte]) # probable
|
v2 != default(array[1024, byte]) # probable
|
||||||
|
|
||||||
for i in 0..<1000:
|
for i in 0..<1000:
|
||||||
doAssert cast[int](rng[].generate(bool)) in [0, 1]
|
doAssert int(rng[].generate(bool)) in [0, 1]
|
||||||
|
|
||||||
var bools: array[64 * 1024, bool]
|
var bools: array[64 * 1024, bool]
|
||||||
rng[].generate(bools)
|
rng[].generate(bools)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user