diff options
author | maximius <none@none> | 2009-10-17 15:35:07 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-17 15:35:07 -0700 |
commit | 26b5e033ffde3d161382fc9addbfa99738379641 (patch) | |
tree | a344f369ca32945f787a02dee35c3dbe342bed7e /dep/include/g3dlite/G3D/Crypto.h | |
parent | f21f47005dcb6b76e1abc9f35fbcd03eed191bff (diff) |
*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget
--HG--
branch : trunk
Diffstat (limited to 'dep/include/g3dlite/G3D/Crypto.h')
-rw-r--r-- | dep/include/g3dlite/G3D/Crypto.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/dep/include/g3dlite/G3D/Crypto.h b/dep/include/g3dlite/G3D/Crypto.h index 2805e8590c2..73eaeeb8fa4 100644 --- a/dep/include/g3dlite/G3D/Crypto.h +++ b/dep/include/g3dlite/G3D/Crypto.h @@ -1,47 +1,34 @@ /** @file Crypto.h - @maintainer Morgan McGuire, matrix@graphics3d.com - @created 2006-03-29 @edited 2006-04-06 */ - #ifndef G3D_CRYPTO_H #define G3D_CRYPTO_H - #include "G3D/platform.h" #include "G3D/g3dmath.h" #include <string> - namespace G3D { - /** Cryptography and hashing helper functions */ class Crypto { public: - /** Computes the CRC32 value of a byte array. CRC32 is designed to be a hash function that produces different values for similar strings. - This implementation is compatible with PKZIP and GZIP. - Based on http://www.gamedev.net/reference/programming/features/crc32/ */ static uint32 crc32(const void* bytes, size_t numBytes); - /** Returns the nth prime less than 2000 in constant time. The first prime has index 0 and is the number 2. */ static int smallPrime(int n); - /** Returns 1 + the largest value that can be passed to smallPrime. */ static int numSmallPrimes(); }; - } - #endif |