Fix out contiguity
@@ -434,7 +434,7 @@ class Generator:
if out is not None:
self._check_output_array(dtype, size, out)
- if out.dtype.char == 'd':
+ if out.dtype.char == 'd' and out.flags.c_contiguous:
y = out
if y is None:
