Implementation of FNV hash in PHP

FNV is a simple algorithm and produces good results.

I needed this functionality as part of another project that required automated generation of relatively large number of unique usernames based on information provided by the user.

Some challenges:  Apparently PHP does not work well with numbers, especially large ones. I spent few hours trying to find out why my implementation was not producing correct results, … realized in the end that arithmetic with big numbers is something you should not do with PHP. To resolve these issues I had to use bitwise shift and add operations instead of multiply.

I put the code here:

… and a simple wiki page here:

More information about the Fowler-Noll-Vo hash function could be found here:

Lecture about Mozilla at the University of Veliko Turnovo

Thanks to the kind cooperation of Interlecta, a lecture about Mozilla in Veliko Turnovo is to become a fact.

Bogomil Shopov will talk about the history of developing the open source browser Firefox, since the first Mosaic through Netscape, Phoenix till its present version and the browser’s upcoming fifth birthday.

The second and more interesting discussion will be about open web as Mozilla’s vision on this subject is fundamental about the Internet freedom and sharing, the adequate usage of the web, and the right to own one’s personal information and contents in the world wide web.

Several of Mozilla’s products will be presented in the third part of the lecture and it will be outlined how everyone can contribute to their development.

According to the information published on Novinite website (a Bulgarian news release website) Mozilla in Bulgaria is more popular than in the rest of the world as a whole. In Bulgaria Firefox is used by 39.1% of users and by 23,75% in global plan.

In October last year Interlecta released the Firefox translation add-on MozTrans which gained popularity very quickly and is now used by thousands of users.

The lecture will be on Thursday, October 15th, in Corpus 3 of “ Cyril and Methodius” University of Veliko Turnovo, starting at 4:30 p.m.