Warning: This is a development version. The latest stable version is Version 1.3.0.
pyerasure.generator.RandomUniform(field: Union[Binary, Binary4, Binary8], symbols)¶Uniform random block generator.
generate() bytes¶Generate the coefficients.
generate_partial(rank: int) bytes¶Generate the coefficients.
generate_recode(decoder: Decoder) bytes¶Generate coefficients based on the decoder state.
set_seed(seed: int)¶Set the state of the coefficient generator. The coefficient generator will always produce the same set of coefficients for a given seed.
symbols: int¶The number of symbols.
pyerasure.generator.RSCauchy(field: Union[Binary4, Binary8], symbols)¶A Reed-Solomon-Cauchy generator
generate() Tuple[bytes, int]¶Generates the coefficients.
generate_specific(index: int) bytes¶Generate a specific set of coefficients.
remaining_repair_symbols()¶The number of remaining repair symbols.
repair_symbols: int¶Return the number of repair symbols supported by this generator.
symbols: int¶The number of symbols.