diff --git a/pyopencl/clrandom.py b/pyopencl/clrandom.py index f1163a8b2688ab911484221f6fc32aaa9b6987c7..b76b15a146597198316bb3892f5e4aa20bfc8bd7 100644 --- a/pyopencl/clrandom.py +++ b/pyopencl/clrandom.py @@ -238,6 +238,9 @@ def get_rand_kernel(context, dtype): def _rand(output, seed): return get_rand_kernel(output.context, output.dtype) +def fill_rand(result): + _rand(result, numpy.random.randint(2**31-1)) + def rand(context, queue, shape, dtype): from pyopencl.array import Array