Skip to content
GitLab
Menu
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
73d049c8
Commit
73d049c8
authored
Nov 14, 2000
by
Niels Möller
Browse files
* src/randomness.h (randomness_with_poll): New class.
Rev: src/randomness.h:1.12
parent
bcae9013
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/randomness.h
View file @
73d049c8
...
...
@@ -64,18 +64,33 @@
#define RANDOM_POLL_FAST(p, h) ((p)->fast((p), (h)))
#define RANDOM_POLL_BACKGROUND(p) ((p)->background((p)))
/* GABA:
(class
(name randomness_with_poll)
(super randomness)
(vars
; Object that gets randomness from the environment
(poller object random_poll)))
*/
/* Consumes the init string (which may be NULL). */
struct
randomness
*
make_poor_random
(
struct
hash_algorithm
*
hash
,
struct
lsh_string
*
init
);
struct
randomness
*
make_bad_random
(
void
);
struct
randomness
*
make_device_random
(
const
char
*
device
);
struct
randomness
*
make_reasonably_random
(
void
);
struct
randomness
*
struct
randomness
_with_poll
*
make_arcfour_random
(
struct
random_poll
*
poller
,
struct
hash_algorithm
*
hash
,
struct
exception_handler
*
e
);
struct
randomness_with_poll
*
make_default_random
(
struct
reap
*
reaper
,
struct
exception_handler
*
e
);
struct
random_poll
*
make_unix_random
(
struct
reap
*
reaper
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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