View Single Post
  #6 (permalink)  
Old May 7th, 2003
der_schreckliche_sven der_schreckliche_sven is offline
Devotee
 
Join Date: May 2nd, 2003
Posts: 22
der_schreckliche_sven is flying high
Default

not necessarily a good idea. It's possible that two files will have the same hash. And in that case your program would not work correctly whenever the rare case occurs that the hash function returns the same hash for two files.

If it's just for the purpose of storing it in a table, I would not use a hash function at all. I would just use a simple incrementing index for each file.
Reply With Quote