Module: Spark::Digest
- Defined in:
- ext/ruby_c/ruby-spark.c
Defined Under Namespace
Classes: Murmur2
Class Method Summary collapse
-
.portable_hash(*args) ⇒ Object
Spark::Digest.portable_hash.
Class Method Details
.portable_hash(*args) ⇒ Object
Spark::Digest.portable_hash
151 152 153 154 155 156 157 158 |
# File 'ext/ruby_c/murmur.c', line 151
VALUE method_portable_hash(int argc, VALUE *argv, VALUE klass)
{
if(argc != 1){
rb_raise(rb_eArgError, "wrong number of arguments (%d for 1)", argc);
}
return murmur2_digest(argv[0], PORTABLE_HASH_SEED);
}
|