Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experimental/hash #46

Closed
wants to merge 1 commit into from
Closed

Conversation

MarcWeber
Copy link
Contributor

adding primop function calculating hash of a string

Signed-off-by: Marc Weber marco-oweber@gmx.de

{
PathSet context;

string type = state.coerceToString(*args[0], context);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to use forceStringNoCtx() here.

@edolstra
Copy link
Member

Can you add a test case for "hash"? Thanks!

adding primop function calculating hash of a string

Signed-off-by: Marc Weber <marco-oweber@gmx.de>
@MarcWeber
Copy link
Contributor Author

Now with test case. Also using forceStringNoCtx

@edolstra
Copy link
Member

Merged with some changes (renamed hash to hashString and added sha1 support)

@edolstra edolstra closed this Feb 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants