Commit a4242c75 authored by Philipp Arras's avatar Philipp Arras

Backport seed paranoia

parent bb1069ae
Pipeline #71080 passed with stages
in 15 minutes and 1 second
from .version import __version__
from . import random
random.seed(42)
from .domains.domain import Domain
from .domains.structured_domain import StructuredDomain
from .domains.unstructured_domain import UnstructuredDomain
......
......@@ -11,13 +11,17 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright(C) 2013-2019 Max-Planck-Society
# Copyright(C) 2013-2020 Max-Planck-Society
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
import numpy as np
def seed(seed):
np.random.seed(seed)
class Random(object):
@staticmethod
def pm1(dtype, shape):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment