diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-15 13:31:42 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-15 13:31:42 +0200 |
commit | eb211ff9f62660143adfbfdc604c4f2bbd3b6784 (patch) | |
tree | 2d1ca106ab5a83da438a43a7aaacc2481b121575 /portato/ipc.pyx | |
parent | 62c7271dc0fbb348be83304a2ffd823cb21c10d7 (diff) | |
download | portato-eb211ff9f62660143adfbfdc604c4f2bbd3b6784.tar.gz portato-eb211ff9f62660143adfbfdc604c4f2bbd3b6784.tar.bz2 portato-eb211ff9f62660143adfbfdc604c4f2bbd3b6784.zip |
Some optimizations
Diffstat (limited to '')
-rw-r--r-- | portato/ipc.pyx | 2 |
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) |