diff options
| author | Kenny Root <kroot@google.com> | 2011-06-15 20:41:15 -0700 |
|---|---|---|
| committer | Kenny Root <kroot@google.com> | 2011-06-15 20:55:49 -0700 |
| commit | e04f826fef44b85108be85fb6d3a16c35a9e5c29 (patch) | |
| tree | 13afd43678741a6439d23a966950cd7c6d40bdaa /include/utils/BlobCache.h | |
| parent | a27ad3cca3f17e394ce96011422a0131c15939a9 (diff) | |
| download | frameworks_base-e04f826fef44b85108be85fb6d3a16c35a9e5c29.zip frameworks_base-e04f826fef44b85108be85fb6d3a16c35a9e5c29.tar.gz frameworks_base-e04f826fef44b85108be85fb6d3a16c35a9e5c29.tar.bz2 | |
Use rand() for MinGW
The version of MinGW we use doesn't have nrand48() which is really lame,
but we need to use libutils in the Windows SDK.
Change-Id: If854c03dbf02bc29e79f49e4539f08c2bf057517
Diffstat (limited to 'include/utils/BlobCache.h')
| -rw-r--r-- | include/utils/BlobCache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils/BlobCache.h b/include/utils/BlobCache.h index 8f76d72..dc45ff0 100644 --- a/include/utils/BlobCache.h +++ b/include/utils/BlobCache.h @@ -82,6 +82,9 @@ private: BlobCache(const BlobCache&); void operator=(const BlobCache&); + // A random function helper to get around MinGW not having nrand48() + long int blob_random(); + // clean evicts a randomly chosen set of entries from the cache such that // the total size of all remaining entries is less than mMaxTotalSize/2. void clean(); |
