Build: Fixed C99-ism in my_log2().

Fixes compilation issue with old non-gcc on non-Intel architectures.
Updated some tests. The actual seed value is not important. Also random data is not extracted in the background to update the seed value anymore.
Fixed compilation issue. tag/cls not constants anymore.