cppalliance / NuDB

NuDB: A fast key/value insert-only database for SSD drives in C++11
Boost Software License 1.0
384 stars 59 forks source link

Computation of pepper should be explicitly little-endian #13

Closed vinniefalco closed 8 years ago

vinniefalco commented 8 years ago

Due to an oversight, the calculation of pepper uses the native integer representation. Since all databases in existence have been created on little endian machines, the code to compute the pepper should always use a little-endian representation (to avoid making a new file format). The documentation should be updated to reflect this reality

vinniefalco commented 8 years ago

This is in master https://github.com/vinniefalco/NuDB/blob/master/include/nudb/detail/format.hpp#L170