We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6599999 commit d41b346Copy full SHA for d41b346
lib/rex/exploitation/jsobfu.rb
@@ -83,7 +83,7 @@ def initialize(parent=nil)
83
def random_var_name
84
len = 1
85
loop do
86
- text = random_string(len)
+ text = @rand_gen.generate(len)
87
unless has_key?(text) or
88
RESERVED_KEYWORDS.include?(text) or
89
BUILTIN_VARS.include?(text)
@@ -100,11 +100,6 @@ def has_key?(key)
100
super or (@parent and @parent.has_key?(key))
101
end
102
103
- # @return [String] a random string that can be used as a var
104
- def random_string(len)
105
- @rand_gen.generate(len)
106
- end
107
-
108
109
110
#
0 commit comments