Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wordcloud/query_integral_image.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def query_integral_image(unsigned int[:,:] integral_image, int size_x, int
# no room left
return None
# pick a location at random
cdef int goal = random_state.randint(0, hits)
cdef int goal = random_state.randint(1, hits)
hits = 0
for i in xrange(x - size_x):
for j in xrange(y - size_y):
Expand Down