~brianaker/libmemcached/embedded

« back to all changes in this revision

Viewing changes to clients/execute.c

  • Committer: Brian Aker
  • Date: 2009-09-22 08:09:29 UTC
  • mfrom: (568.4.1 libmemcached)
  • Revision ID: brian@gaz-20090922080929-xwukchclxxhunn4v
Merge Patrick

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    uint32_t flags;
47
47
    unsigned int fetch_key;
48
48
 
49
 
    fetch_key= (unsigned int)random() % number_of;
 
49
    fetch_key= (unsigned int)((unsigned int)random() % number_of);
50
50
 
51
51
    value= memcached_get(memc, pairs[fetch_key].key, pairs[fetch_key].key_length,
52
52
                         &value_length, &flags, &rc);