# `Spectre.Determinism.Source`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/determinism/source.ex#L1)

Host port for decision-relevant clock and randomness samples.

The default implementation delegates to the Erlang runtime. Replay and
audit integrations may provide a source through `:determinism_source`; the
source is resolved at the boundary and is never persisted inside a Run.

# `monotonic_time_unit`

```elixir
@type monotonic_time_unit() :: time_unit() | :native
```

# `time_unit`

```elixir
@type time_unit() :: System.time_unit()
```

# `monotonic_time`

```elixir
@callback monotonic_time(
  monotonic_time_unit(),
  keyword()
) :: integer()
```

# `random_bytes`

```elixir
@callback random_bytes(
  non_neg_integer(),
  keyword()
) :: binary()
```

# `system_time`

```elixir
@callback system_time(
  time_unit(),
  keyword()
) :: integer()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
