Skip to content

Commit 760a399

Browse files
committed
Renamed T to SINE in MD5SUM.LUA. The name is more descriptive and prevents double use when called from EXBENCH.LUA.
1 parent c7e1d0b commit 760a399

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/xtra/MD5SUM.LUA

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function md5_file(file)
4040
local t = d
4141
d = c
4242
c = b
43-
b = (b + LS((a + f + wo[g + 1] + T[i]) & 0xFFFFFFFF, s)) & 0xFFFFFFFF
43+
b = (b + LS((a + f + wo[g + 1] + SINE[i]) & 0xFFFFFFFF, s)) & 0xFFFFFFFF
4444
a = t
4545
end
4646
A = (A + a) & 0xFFFFFFFF
@@ -76,8 +76,8 @@ function md5_file(file)
7676
end
7777

7878
local function init()
79-
T = {}
80-
for i = 1, 64 do T[i] = math.floor(2 ^ 32 * math.abs(math.sin(i))) end
79+
SINE = {}
80+
for i = 1, 64 do SINE[i] = math.floor(2 ^ 32 * math.abs(math.sin(i))) end
8181
end
8282

8383
if LIB then init() return end

0 commit comments

Comments
 (0)