Protox v0.7.1 Protox.RandomInit

Provides a way to randomly init a message. Useful for tests or benchmarks.

Summary

Functions

Generates a randomly initialized message using its definition. It’s possible to give a seed as the second parameter to get reproducible results

Functions

generate(mod, seed \\ nil)
generate(atom, nil | integer) :: struct

Generates a randomly initialized message using its definition. It’s possible to give a seed as the second parameter to get reproducible results.