cutcutcodec.core.interfaces.seedable

Interface for the nodes that require a random seed.

Classes

Seedable([seed])

Interface for appening a seed management.

Details

class cutcutcodec.core.interfaces.seedable.Seedable(seed: Real | None = None)[source]

Interface for appening a seed management.

Attributes

seedfloat

The value of the seed between [0, 1[ (readonly).

seed_bytesbytes

The hashed version of the seed. Contains 32 bytes, ie 256 bits.

Initialise and create the class.

Parameters

seednumbers.Real, optional

The random seed to have a repeatability. The value must be between 0 included and 1 excluded. If not provided, the seed is chosen randomly.