https://github.com/macdavid313/cl-libfarmhash.git
git clone 'https://github.com/macdavid313/cl-libfarmhash.git'
(ql:quickload :cl-libfarmhash)
note: all results shown below are from a 64bit Mac OS platform.
FARM> (farmhash "test")
2929758365
FARM> (farmhash32 "test")
168770635
FARM> (farmhash32-with-seed "test" 12345)
687740529
FARM> (farmhash64 "test")
656818571139125405
FARM> (farmhash64-with-seed "test" 12345)
1329645378812687902
FARM> (farmhash64-with-seeds "test" 12345 54321)
2807312541950536949
FARM> (farmhash128 "test")
278051559519782271719215074689603618262
FARM> (farmhash128-with-seed "test" 1234554321)
8373479877626909324346027983011427843
FARM> (farmhash-fingerprint32 "test")
1633095781
FARM> (farmhash-fingerprint64 "test")
8581389452482819506
FARM> (farmhash-fingerprint128 "test")
334882099032867325754781607143811124132
Just (ql:quickload :cl-libfarmhash)
. All exported functions has been simply tested on SBCL
, CCL
, Allegro CL
and LispWorks
.
Copyright (c) 2016 David Gu (david_guru@gty.org.in)