aboutsummaryrefslogtreecommitdiff
path: root/src/core/random.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/random.h
parentec7de57627a2bba8fadfb34d118ac478fbc351aa (diff)
downloadnng-11985f8c59cccc0364bde7dd314e246ea53cff90.tar.gz
nng-11985f8c59cccc0364bde7dd314e246ea53cff90.tar.bz2
nng-11985f8c59cccc0364bde7dd314e246ea53cff90.zip
fixes #1083 Random number improvements
Diffstat (limited to 'src/core/random.h')
-rw-r--r--src/core/random.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/core/random.h b/src/core/random.h
deleted file mode 100644
index 33229b09..00000000
--- a/src/core/random.h
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// Copyright 2017 Garrett D'Amore <garrett@damore.org>
-//
-// This software is supplied under the terms of the MIT License, a
-// copy of which should be located in the distribution where this
-// file was obtained (LICENSE.txt). A copy of the license may also be
-// found online at https://opensource.org/licenses/MIT.
-//
-
-#ifndef CORE_RANDOM_H
-#define CORE_RANDOM_H
-
-// nni_random_sys_init initializes the pRNG subsystem. This includes obtaining
-// suitable seeding material from the platform.
-extern int nni_random_sys_init(void);
-
-// nni_random_sys_fini destroys the pRNG subsystem.
-extern void nni_random_sys_fini(void);
-
-// nni_random returns a random 32-bit integer. Note that this routine is
-// thread-safe/reentrant. The pRNG is very robust, should be of crypto
-// quality. However, its usefulness for cryptography will be determined
-// by the quality of the seeding material provided by the platform.
-extern uint32_t nni_random(void);
-
-#endif // CORE_RANDOM_H