aboutsummaryrefslogtreecommitdiff
path: root/src/core/platform.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-01-01 17:57:12 -0800
committerGarrett D'Amore <garrett@damore.org>2020-01-01 17:57:12 -0800
commit11985f8c59cccc0364bde7dd314e246ea53cff90 (patch)
treec75c15db75b297817c10c9f2f6188aa767cbfa82 /src/core/platform.h
parentec7de57627a2bba8fadfb34d118ac478fbc351aa (diff)
downloadnng-11985f8c59cccc0364bde7dd314e246ea53cff90.tar.gz
nng-11985f8c59cccc0364bde7dd314e246ea53cff90.tar.bz2
nng-11985f8c59cccc0364bde7dd314e246ea53cff90.zip
fixes #1083 Random number improvements
Diffstat (limited to 'src/core/platform.h')
-rw-r--r--src/core/platform.h7
1 files changed, 2 insertions, 5 deletions
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,