package modelkit

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Modelkit.Seed

Stable, platform-independent seed values.

Derivation hashes the bytes of operation and the logical index with a fixed algorithm. It is independent of domain scheduling and OCaml's runtime hash implementation, to ensure cross-platform and cross-runtime version values are stable and reproducible.

type t
val of_int : int -> t
val of_int64 : int64 -> t
val to_int64 : t -> int64
val equal : t -> t -> bool
val derive : t -> operation:string -> index:int -> t
val pp : Format.formatter -> t -> unit
val to_string : t -> string