From 11985f8c59cccc0364bde7dd314e246ea53cff90 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 1 Jan 2020 17:57:12 -0800 Subject: fixes #1083 Random number improvements --- src/core/platform.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/core/platform.h') diff --git a/src/core/platform.h b/src/core/platform.h index b56f9a68..355ef7eb 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -208,11 +208,8 @@ extern void nni_plat_sleep(nni_duration); // Entropy Support // -// nni_plat_seed_prng seeds the PRNG subsystem. The specified number -// of bytes of entropy should be stashed. When possible, cryptographic -// quality entropy sources should be used. Note that today we prefer -// to seed up to 256 bytes of data. -extern void nni_plat_seed_prng(void *, size_t); +// nni_random returns a cryptographically secure random uint32. +uint32_t nni_random(void); // nni_plat_init is called to allow the platform the chance to // do any necessary initialization. This routine MUST be idempotent, -- cgit v1.2.3-70-g09d2