simplified block hash function