Skip to content

Commit b061efc

Browse files
committed
fix test_random.py crash
1 parent ec7206a commit b061efc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sharpy/random/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
def uniform(low, high, size, device="", team=1):
99
data = np.random.uniform(low, high, size)
1010
if len(data.shape) == 0:
11-
sp_data = sp.empty(())
12-
sp_data[()] = data[()]
11+
sp_data = sp.full((), data[()], device=device, team=team)
1312
return sp_data
1413
return fromfunction(
1514
lambda *index: data[index],

0 commit comments

Comments
 (0)