[MarkLogic Dev General] About hash map function

Nizamuddin, Rashid rnizamuddin at edmunds.com
Mon May 14 13:45:48 PDT 2007


Could anybody please tell me why I am not getting a unique value when I
execute this loop

let $cnt := 1 to 5

for $c in $cnt

return 

    let $str := xdmp:hash64(string(current-dateTime()))

    return $str

 

for each iteration I get the same value. I need to get a unique value to
insert in some ids elements.

 

Any help will be appreciated

 

Rashid

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20070514/f0e49920/attachment.html


More information about the General mailing list