lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On Feb 07, 2005, at 12:28, Milano Carvalho wrote:

Source code attached. Not well tested! :)

Excellent! Works like a charm :)

local anUUID = uuid.new( "time" )

print( anUUID, os.date( "%x", uuid.time( anUUID ) ) )

-> 906478e6-7902-11d9-b30f-394bb8420c03    02/07/05

local aDigest = md5.digest( anUUID )

print( aDigest )

-> 59f8f15c5d60508e5c0019843237fecf

local anHash = crc.calc( anUUID )

print( anHash )

-> 2581340491

Thanks a lot! :)

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/