kowasm
0.1.0-SNAPSHOT
wasm
wasi
/
org.kowasm.wasi
/
SecureWasiRandom
Secure
Wasi
Random
class
SecureWasiRandom
:
Random
Provide a secure random generator implemented via WASI.
Members
Constructors
Secure
Wasi
Random
Link copied to clipboard
constructor
(
)
Functions
next
Bits
Link copied to clipboard
open
override
fun
nextBits
(
bitCount
:
Int
)
:
Int
next
Boolean
Link copied to clipboard
open
fun
nextBoolean
(
)
:
Boolean
next
Bytes
Link copied to clipboard
open
fun
nextBytes
(
array
:
ByteArray
)
:
ByteArray
open
fun
nextBytes
(
size
:
Int
)
:
ByteArray
open
fun
nextBytes
(
array
:
ByteArray
,
fromIndex
:
Int
,
toIndex
:
Int
)
:
ByteArray
next
Double
Link copied to clipboard
open
fun
nextDouble
(
)
:
Double
open
fun
nextDouble
(
until
:
Double
)
:
Double
open
fun
nextDouble
(
from
:
Double
,
until
:
Double
)
:
Double
next
Float
Link copied to clipboard
open
fun
nextFloat
(
)
:
Float
next
Int
Link copied to clipboard
open
fun
nextInt
(
until
:
Int
)
:
Int
open
fun
nextInt
(
from
:
Int
,
until
:
Int
)
:
Int
open
override
fun
nextInt
(
)
:
Int
next
Long
Link copied to clipboard
open
fun
nextLong
(
until
:
Long
)
:
Long
open
fun
nextLong
(
from
:
Long
,
until
:
Long
)
:
Long
open
override
fun
nextLong
(
)
:
Long