Commit 604044cd authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'random_paranoia' into 'NIFTy_6'

Be more paranoid about initializing the RNG

See merge request !426
parents ad4c6cde 2a2c32b1
Pipeline #71007 passed with stages
in 17 minutes and 21 seconds
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