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
LSH
lsh
Commits
3a5c41b8
Commit
3a5c41b8
authored
Sep 03, 1998
by
Niels Möller
Browse files
RAndom functions are represented as closures.
Rev: src/pad.c:1.8
parent
b944b290
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pad.c
View file @
3a5c41b8
...
...
@@ -44,8 +44,7 @@ static int do_pad(struct abstract_write **w,
struct
abstract_write
*
make_packet_pad
(
struct
abstract_write
*
continuation
,
unsigned
block_size
,
random_function
random
,
void
*
state
)
random_function
random
)
{
struct
packet_pad
*
closure
=
xalloc
(
sizeof
(
struct
packet_pad
));
...
...
@@ -53,7 +52,6 @@ make_packet_pad(struct abstract_write *continuation,
closure
->
super
.
next
=
continuation
;
closure
->
block_size
=
block_size
;
closure
->
random
=
random
;
closure
->
state
=
state
;
return
&
closure
->
super
.
super
;
}
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