Skip to content

Commit b5e352c

Browse files
committed
Dist recommendations
1 parent 7e49fd3 commit b5e352c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

dist/bcrypt-isaac.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@
12081208
/* initialisation */
12091209
function reset() {
12101210
acc = brs = cnt = 0;
1211-
for(var i = 0; i < 256; ++i)
1211+
for (var i = 0; i < 256; ++i)
12121212
m[i] = r[i] = 0;
12131213
gnt = 0;
12141214
}
@@ -1225,7 +1225,7 @@
12251225

12261226
if (s instanceof Array) {
12271227
reset();
1228-
for(i = 0; i < s.length; ++i)
1228+
for (i = 0; i < s.length; ++i)
12291229
r[i & 0xff] += typeof(s[i]) === 'number' ? s[i] : 0;
12301230
}
12311231

@@ -1241,10 +1241,10 @@
12411241
h ^= a >>> 9; c = add(c, h); a = add(a, b);
12421242
}
12431243

1244-
for(i = 0; i < 4; i++) /* scramble it */
1244+
for (i = 0; i < 4; i++) /* scramble it */
12451245
seed_mix();
12461246

1247-
for(i = 0; i < 256; i += 8) {
1247+
for (i = 0; i < 256; i += 8) {
12481248
if (s) /* use all the information in the seed */
12491249
a = add(a, r[i + 0]), b = add(b, r[i + 1]),
12501250
c = add(c, r[i + 2]), d = add(d, r[i + 3]),
@@ -1255,9 +1255,9 @@
12551255
m[i + 0] = a; m[i + 1] = b; m[i + 2] = c; m[i + 3] = d;
12561256
m[i + 4] = e; m[i + 5] = f; m[i + 6] = g; m[i + 7] = h;
12571257
}
1258-
if(s)
1258+
if (s)
12591259
/* do a second pass to make all of the seed affect all of m[] */
1260-
for(i = 0; i < 256; i += 8)
1260+
for (i = 0; i < 256; i += 8)
12611261
a = add(a, m[i + 0]), b = add(b, m[i + 1]),
12621262
c = add(c, m[i + 2]), d = add(d, m[i + 3]),
12631263
e = add(e, m[i + 4]), f = add(f, m[i + 5]),
@@ -1271,10 +1271,10 @@
12711271
}
12721272

12731273
/* isaac generator, n = number of run */
1274-
function prng(n){
1274+
function prng(n) {
12751275
var i, x, y;
12761276
n = n && typeof(n) === 'number' ? Math.abs(Math.floor(n)) : 1;
1277-
while(n--) {
1277+
while (n--) {
12781278
cnt = add(cnt, 1);
12791279
brs = add(brs, cnt);
12801280
for(i = 0; i < 256; i++) {
@@ -1293,7 +1293,7 @@
12931293

12941294
/* return a random number between */
12951295
return function() {
1296-
if(!gnt--)
1296+
if (!gnt--)
12971297
prng(), gnt = 255;
12981298
return r[gnt];
12991299
};

0 commit comments

Comments
 (0)