This project will provide C language functions that support some statistical calculations to determine the randomness of data, e.g. calculation of the Shannon bit/byte entropy or Pearson's chi-square statistics.
The pg-randomnessproject is a PostgreSQL Community project that is a part of the pgFoundry.
The pgFoundry page for the project is at http://pgfoundry.org/projects/pg-randomness, where you can find downloads, documentation, bug reports, mailing lists, and a whole lot more.