From eb211ff9f62660143adfbfdc604c4f2bbd3b6784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 15 Aug 2009 13:31:42 +0200 Subject: Some optimizations --- portato/ipc.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portato/ipc.pyx') diff --git a/portato/ipc.pyx b/portato/ipc.pyx index e9340cf..1f8603d 100644 --- a/portato/ipc.pyx +++ b/portato/ipc.pyx @@ -169,5 +169,5 @@ cdef class MessageQueue (object): return retTuple - cdef key_t random_key (self): + cdef inline key_t random_key (self): return (rand() / (RAND_MAX + 1) * INT_MAX) -- cgit v1.2.3