summaryrefslogtreecommitdiff
path: root/Modules/_randommodule.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-02-20 00:50:04 -0800
committerRaymond Hettinger <python@rcn.com>2015-02-20 00:50:04 -0800
commit7a4f43a8dd14c5eb64762a1ffcf1d44f069fc293 (patch)
treee0a715629f863c44a0be03de7a912affded4af12 /Modules/_randommodule.c
parent8e286794173376350dfdf7d99ac688b1827a38a3 (diff)
downloadcpython-git-7a4f43a8dd14c5eb64762a1ffcf1d44f069fc293.tar.gz
Improve struct cache locality by bring commonly accessed fields close together.
Diffstat (limited to 'Modules/_randommodule.c')
-rw-r--r--Modules/_randommodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index 4377ee0cf4..af861820a2 100644
--- a/Modules/_randommodule.c
+++ b/Modules/_randommodule.c
@@ -78,8 +78,8 @@
typedef struct {
PyObject_HEAD
- unsigned long state[N];
int index;
+ unsigned long state[N];
} RandomObject;
static PyTypeObject Random_Type;