summaryrefslogtreecommitdiff
path: root/portato/ipc.pyx
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-08-15 13:31:42 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-08-15 13:31:42 +0200
commiteb211ff9f62660143adfbfdc604c4f2bbd3b6784 (patch)
tree2d1ca106ab5a83da438a43a7aaacc2481b121575 /portato/ipc.pyx
parent62c7271dc0fbb348be83304a2ffd823cb21c10d7 (diff)
downloadportato-eb211ff9f62660143adfbfdc604c4f2bbd3b6784.tar.gz
portato-eb211ff9f62660143adfbfdc604c4f2bbd3b6784.tar.bz2
portato-eb211ff9f62660143adfbfdc604c4f2bbd3b6784.zip
Some optimizations
Diffstat (limited to '')
-rw-r--r--portato/ipc.pyx2
1 files changed, 1 insertions, 1 deletions
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 <int>(<double>rand() / (<double>RAND_MAX + 1) * INT_MAX)