Complete the implementation of llSHA1String.

This commit is contained in:
idb
2009-01-29 19:47:55 +00:00
parent 6e63e93ec7
commit ea6e4a95ce
2 changed files with 13 additions and 1 deletions

View File

@@ -5890,8 +5890,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_String llSHA1String(string src)
{
m_host.AddScriptLPS(1);
return ""; //ckrinke 1/27 This needs to return a proper hash.
return Util.SHA1Hash(src).ToLower();
}
private ObjectShapePacket.ObjectDataBlock SetPrimitiveBlockShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist)
{
ObjectShapePacket.ObjectDataBlock shapeBlock = new ObjectShapePacket.ObjectDataBlock();