Re: [SMARTY-DEV] Problem with custom resource compiled filenames

From: Date: Tue, 23 Aug 2005 13:26:45 +0000
Subject: Re: [SMARTY-DEV] Problem with custom resource compiled filenames
References: 1 2 3 4 5 6 7 8  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2770@lists.php.net to get a copy of this message
For what it's worth, I have never seen a hash collision (or had a report of one) in Smarty. messju mohr wrote:
On Tue, Aug 23, 2005 at 10:42:53AM +0200, Ivo Jansch wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hoi, Monte Ohrt wrote:
That would be fine with me, although Smarty uses crc32() everywhere instead of md5() since it is 10x faster.
     
That would be fine with me as well, but I was in doubt whether crc32 guarantees a unique hash for every string the way md5 does.
neither of the two do does guarantee that. the probability of a collision is just much lower with md5.
Greetings, Ivo - -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDCuGN95NUnGFZm9cRAq6TAJwMEajligkD20AH06FtiSM67ruNRQCg1pm8 2L1ozOJs0fZ9HXfb/udmogs= =55Zn -----END PGP SIGNATURE----- -- Smarty Development Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
!DSPAM:430ae533192415660158953!


« previous php.smarty.dev (#2770) next »