Skip to content
Snippets Groups Projects
Commit c11f9d21 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

pkg/tweetnacl: Use RIOT random_bytes instead of randombytes

parent d6c63592
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,6 @@ PKG_LICENSE=PD ...@@ -6,7 +6,6 @@ PKG_LICENSE=PD
.PHONY: all .PHONY: all
all: git-download all: git-download
@cp $(RIOTBASE)/pkg/tweetnacl/src/* $(PKG_BUILDDIR) $(Q)"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.riot
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk include $(RIOTBASE)/pkg/pkg.mk
\ No newline at end of file
MODULE=tweetnacl MODULE=tweetnacl
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
\ No newline at end of file
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
/*
* Copyright (C) 2016 Kaspar Schleiser <kaspar@schleiser.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
#include <stdint.h>
#include "random.h"
void randombytes(uint8_t *target, uint64_t n)
{
/* tweetnacl needs uint64_t as "n" parameter, random provides uint32 */
random_bytes(target, n);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment