summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-11-30 19:23:40 -0500
committerNick Mathewson <nickm@torproject.org>2010-11-30 19:23:40 -0500
commit3ed7505dc5684a235f87042d074b39ad35b4e415 (patch)
tree8eb410908d08550d9ac3bd1245fd800160cca39a /src/common/compat.h
parent8fa4450fde435bcab5e050b3a9b2b34c072f40b9 (diff)
parentad87d6172bc8b06a851da84f5a96ae87446ef90b (diff)
downloadtor-3ed7505dc5684a235f87042d074b39ad35b4e415.tar.gz
tor-3ed7505dc5684a235f87042d074b39ad35b4e415.zip
Merge remote branch 'origin/maint-0.2.2'
Conflicts: src/or/relay.c
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 2471e6b830..38e0f99ba9 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -487,6 +487,11 @@ typedef enum {
SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED = 0x08,
} socks5_reply_status_t;
+/* ===== Insecure rng */
+void tor_init_weak_random(unsigned seed);
+long tor_weak_random(void);
+#define TOR_RAND_MAX (RAND_MAX)
+
/* ===== OS compatibility */
const char *get_uname(void);