Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions csa/_elementary.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
"""
Randomness and reproducibility
------------------------------
This module relies on Python's global random number generator.
Random values are drawn from the current RNG state and the RNG
is not re-seeded on each call.

As a result, repeated CSA operations (e.g. random/block-style
masks) with identical parameters may produce different
realizations unless the user explicitly sets a random seed
using ``random.seed(...)`` before invoking them.
"""
#
# This file is part of the Connection-Set Algebra (CSA).
# Copyright (C) 2010,2011,2012 Mikael Djurfeldt
Expand Down