diff options
Diffstat (limited to 'ecp/test/init.c')
-rw-r--r-- | ecp/test/init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ecp/test/init.c b/ecp/test/init.c index 7e39f87..4dff693 100644 --- a/ecp/test/init.c +++ b/ecp/test/init.c @@ -6,7 +6,7 @@ static int v_rng(void *buf, size_t bufsize) { int fd; - + if((fd = open("/dev/urandom", O_RDONLY)) < 0) return -1; size_t nb = read(fd, buf, bufsize); close(fd); @@ -24,13 +24,13 @@ static void conn_free(ECPConnection *conn) { int ecp_init(ECPContext *ctx) { int rv; - - rv = ecp_ctx_create(ctx); + + rv = ecp_ctx_init(ctx); if (rv) return rv; - + ctx->rng = v_rng; ctx->conn_alloc = conn_alloc; ctx->conn_free = conn_free; - + return ECP_OK; }
\ No newline at end of file |