Skip to content

Commit 19e18c3

Browse files
committed
EHN: hash + 0 removed due to given same result in such case and all other chars are same result as last hash
1 parent 375ff9e commit 19e18c3

File tree

1 file changed

+0
-64
lines changed

1 file changed

+0
-64
lines changed

package/hashFun.ts

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -227,70 +227,6 @@ export const hashFun = (secret: string) => {
227227
case ',':
228228
hash = hash + 75;
229229
break;
230-
case '-':
231-
hash = hash + 0;
232-
break;
233-
case '.':
234-
hash = hash + 0;
235-
break;
236-
case '/':
237-
hash = hash + 0;
238-
break;
239-
case ':':
240-
hash = hash + 0;
241-
break;
242-
case ';':
243-
hash = hash + 0;
244-
break;
245-
case '<':
246-
hash = hash + 0;
247-
break;
248-
case '=':
249-
hash = hash + 0;
250-
break;
251-
case '>':
252-
hash = hash + 0;
253-
break;
254-
case '?':
255-
hash = hash + 0;
256-
break;
257-
case '@':
258-
hash = hash + 0;
259-
break;
260-
case '[':
261-
hash = hash + 0;
262-
break;
263-
case '\\':
264-
hash = hash + 0;
265-
break;
266-
case ']':
267-
hash = hash + 0;
268-
break;
269-
case '^':
270-
hash = hash + 0;
271-
break;
272-
case '_':
273-
hash = hash + 0;
274-
break;
275-
case '`':
276-
hash = hash + 0;
277-
break;
278-
case '{':
279-
hash = hash + 0;
280-
break;
281-
case '|':
282-
hash = hash + 0;
283-
break;
284-
case '}':
285-
hash = hash + 0;
286-
break;
287-
case '~':
288-
hash = hash + 0;
289-
break;
290-
291-
default:
292-
hash = hash + 0;
293-
break;
294230
}
295231
charGen.push(hash);
296232
return hash & hash;

0 commit comments

Comments
 (0)