From: bdemsky Date: Sat, 20 Jan 2018 05:47:41 +0000 (-0800) Subject: edits X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=commitdiff_plain;h=15175037b4697d670a50b5c1362138da2b382137 edits --- diff --git a/version2/src/C/Random.h b/version2/src/C/Random.h new file mode 100644 index 0000000..17d1881 --- /dev/null +++ b/version2/src/C/Random.h @@ -0,0 +1,14 @@ +#ifndef RANDOM_H +#define RANDOM_H +#include +class Random { +public: + Random(); + int32_t nextInt() { + return random(); + } + int32_t nextInt(int32_t val) { + return random() % val; + } +}; +#endif diff --git a/version2/src/C/SecureRandom.h b/version2/src/C/SecureRandom.h new file mode 100644 index 0000000..643efb4 --- /dev/null +++ b/version2/src/C/SecureRandom.h @@ -0,0 +1,7 @@ +#ifndef SECURERANDOM_H +#define SECURERANDOM_H +class SecureRandom { + public: + SecureRandom(); +}; +#endif diff --git a/version2/src/C/URL.h b/version2/src/C/URL.h new file mode 100644 index 0000000..762c1ae --- /dev/null +++ b/version2/src/C/URL.h @@ -0,0 +1,5 @@ +#ifndef URL_H +#define URL_H +class URL { +}; +#endif