edits
authorbdemsky <bdemsky@uci.edu>
Sat, 20 Jan 2018 05:47:41 +0000 (21:47 -0800)
committerbdemsky <bdemsky@uci.edu>
Sat, 20 Jan 2018 05:47:41 +0000 (21:47 -0800)
version2/src/C/Random.h [new file with mode: 0644]
version2/src/C/SecureRandom.h [new file with mode: 0644]
version2/src/C/URL.h [new file with mode: 0644]

diff --git a/version2/src/C/Random.h b/version2/src/C/Random.h
new file mode 100644 (file)
index 0000000..17d1881
--- /dev/null
@@ -0,0 +1,14 @@
+#ifndef RANDOM_H
+#define RANDOM_H
+#include <stdlib.h>
+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 (file)
index 0000000..643efb4
--- /dev/null
@@ -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 (file)
index 0000000..762c1ae
--- /dev/null
@@ -0,0 +1,5 @@
+#ifndef URL_H
+#define URL_H
+class URL {
+};
+#endif