Documentation ¶
Overview ¶
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2024, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2024, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.
Index ¶
Constants ¶
const LibraryName = "ukrandom"
Variables ¶
var ParamRandomSeed = ukargparse.ParamStr("random", "seed", nil)
Functions ¶
func ExportedParams ¶
func ExportedParams() []ukargparse.Param
ExportedParams returns the parameters available by this exported library.
Types ¶
type RandomSeed ¶
type RandomSeed [8]uint32
RandomSeed are the 8 ints that are required by the ukrandom library.
func NewRandomSeed ¶
func NewRandomSeed() (random RandomSeed)
NewRandomSeed generates a new set of true random integers or nothing if error.
func (RandomSeed) String ¶
func (rng RandomSeed) String() string
String implements fmt.Stringer and returns a valid set of random bytes.