Skip to content

Commit 57ec5c3

Browse files
authored
Update imsim/lsst_image.py
1 parent 9bdee71 commit 57ec5c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

imsim/lsst_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def addNoise(self, image, config, base, image_num, obj_num, current_var, logger)
294294
camera = get_camera(self.camera_name)
295295
det_name = base['det_name']
296296
serial_number = camera[det_name].getSerial()
297-
# Note: the regular Python hash function is non-derterministic, which is not good.
297+
# Note: the regular Python hash function is non-deterministic, which is not good.
298298
# Instead we use hashlib.sha256, which is deterministic and convert that to an integer.
299299
# https://stackoverflow.com/questions/27954892/deterministic-hashing-in-python-3
300300
seed = int(hashlib.sha256(serial_number.encode('UTF-8')).hexdigest(), 16) & 0xFFFFFFFF

0 commit comments

Comments
 (0)