aboutsummaryrefslogtreecommitdiff
path: root/src/rnd_well512.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-09-14 15:47:30 +0930
committerDavid Timber <mieabby@gmail.com>2020-09-14 15:47:30 +0930
commitf7f7332afafd4f965c5ef1d45cc1c7da9275c6ef (patch)
tree53b8e96d2d070215f0c6ee133cdba58ca93a4138 /src/rnd_well512.c
parentc4160ed41717260b5941e2729c444b8ec051d5f0 (diff)
* Add "--enable-static" configure option
* Change "PRNE_DEBUG" macro use * Add "PRNE_VERBOSE" * Impl "recon" * Add "inet.h" for Internet Protocol stuff * Changes regarding "PRNE_RND_WELL512_SEEDLEN" * Add prne_own_realloc() for objects with multiple array memebers * Add prne_add_timespec()
Diffstat (limited to 'src/rnd_well512.c')
-rw-r--r--src/rnd_well512.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/rnd_well512.c b/src/rnd_well512.c
index 5f7b97e..a6bca13 100644
--- a/src/rnd_well512.c
+++ b/src/rnd_well512.c
@@ -50,16 +50,10 @@ static void rnd_free_well512 (void *p) {
bool prne_rnd_alloc_well512 (
prne_rnd_t *p,
- const uint8_t *is,
- const size_t is_len)
+ const uint8_t *is)
{
rnd_well512_ctx_t *ctx;
- if (is_len < sizeof(ctx->state)) {
- errno = EINVAL;
- return false;
- }
-
ctx = (rnd_well512_ctx_t*)prne_calloc(sizeof(rnd_well512_ctx_t), 1);
if (ctx == NULL) {
return false;