A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/openpgpjs/openpgpjs/commit/1acf1cff9ae1036bf419c96f27f333b98a8650c1 below:

OP-01-002 Math.random() usage in dead Code Branch (Low) · openpgpjs/openpgpjs@1acf1cf · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+0

-22

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+0

-22

lines changed Original file line number Diff line number Diff line change

@@ -30,10 +30,6 @@

30 30 31 31

var MAXINT = 0xFFFFFFFF;

32 32 33 -

function rotb(b, n) {

34 -

return (b << n | b >>> (8 - n)) & 0xFF;

35 -

}

36 - 37 33

function rotw(w, n) {

38 34

return (w << n | w >>> (32 - n)) & MAXINT;

39 35

}

@@ -54,24 +50,6 @@ function getB(x, n) {

54 50

return (x >>> (n * 8)) & 0xFF;

55 51

}

56 52 57 -

function getNrBits(i) {

58 -

var n = 0;

59 -

while (i > 0) {

60 -

n++;

61 -

i >>>= 1;

62 -

}

63 -

return n;

64 -

}

65 - 66 -

function getMask(n) {

67 -

return (1 << n) - 1;

68 -

}

69 - 70 -

//added 2008/11/13 XXX MUST USE ONE-WAY HASH FUNCTION FOR SECURITY REASON

71 - 72 -

function randByte() {

73 -

return Math.floor(Math.random() * 256);

74 -

}

75 53

// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

76 54

// Twofish

77 55

// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4