Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nigel Kukard
smradius
Commits
937d35ba
Commit
937d35ba
authored
Sep 10, 2016
by
Nigel Kukard
Browse files
Use whole integers for ident
parent
fb75d502
Changes
1
Hide whitespace changes
Inline
Side-by-side
smradclient
View file @
937d35ba
...
...
@@ -161,11 +161,11 @@ print(STDERR " > Secret => '$secret'\n");
my
$pkt
=
Radius::
Packet
->
new
(
$raddb
);
$pkt
->
set_code
(
$pkt_code
);
# Generate identifier
my
$ident
=
rand
(
32768
);
my
$ident
=
int
(
rand
(
32768
)
)
;
$pkt
->
set_identifier
(
$ident
);
print
(
STDERR
"
> Identifier:
$ident
\n
");
# Generate authenticator number
my
$authen
=
rand
(
32768
);
my
$authen
=
int
(
rand
(
32768
)
)
;
$pkt
->
set_authenticator
(
$authen
);
print
(
STDERR
"
> Authenticator:
$ident
\n
");
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment