mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-27 15:51:17 +00:00
Simplified a bit of code in JavaScript, TypeScript, Python.
This commit is contained in:
+2
-2
@@ -870,8 +870,8 @@ class _ReedSolomonGenerator(object):
|
||||
for b in data:
|
||||
factor = b ^ result.pop(0)
|
||||
result.append(0)
|
||||
for i in range(len(result)):
|
||||
result[i] ^= _ReedSolomonGenerator._multiply(self.coefficients[i], factor)
|
||||
for (i, coef) in enumerate(self.coefficients):
|
||||
result[i] ^= _ReedSolomonGenerator._multiply(coef, factor)
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user