Skip to content

Commit 36eeff1

Browse files
committed
Apply TR feedback
1 parent e98bbd9 commit 36eeff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-bytes/generate_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import numpy as np
22
from PIL import Image
33

4-
pixels = np.random.rand(1080, 1920, 3) * 255
4+
pixels = np.random.default_rng().random((1080, 1920, 3)) * 255
55
image = Image.fromarray(pixels.astype("uint8"))
66
image.save("image.png")

0 commit comments

Comments
 (0)