Skip to content

Commit b87f793

Browse files
Removed random dummy failed on update checksum verification
1 parent 53c003d commit b87f793

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

sdk_utils.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from random import randint
1615
from zlib import crc32
1716
from hashlib import sha256, sha384, sha512, md5
1817
import logging
@@ -78,8 +77,4 @@ def verify_checksum(firmware_data, checksum_alg, checksum):
7877
else:
7978
log.error('Client error. Unsupported checksum algorithm.')
8079
log.debug(checksum_of_received_firmware)
81-
random_value = randint(0, 5)
82-
if random_value > 3:
83-
log.debug('Dummy fail! Do not panic, just restart and try again the chance of this fail is ~20%')
84-
return False
8580
return checksum_of_received_firmware == checksum

0 commit comments

Comments
 (0)