소스 검색

ft:函数添加

master
SisMaker 4 년 전
부모
커밋
4b4c96d3cb
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      src/uuid/utUuid.erl

+ 5
- 0
src/uuid/utUuid.erl 파일 보기

@ -4,6 +4,7 @@
randStr/1 %%
, uuid/0 %% UUID
, uuidHex/0 %% hex格式的唯一UUID
, uuidHexBin/0
]).
-spec randStr(integer()) -> string().
@ -28,3 +29,7 @@ uuid() ->
-spec uuidHex() -> binary().
uuidHex() ->
utMd5:getMd5Hex(term_to_binary({erlang:system_time(nanosecond), rand:uniform(134217727), make_ref()})).
-spec uuidHexBin() -> binary().
uuidHexBin() ->
utMd5:getMd5HexBin(term_to_binary({erlang:system_time(nanosecond), rand:uniform(134217727), make_ref()})).

불러오는 중...
취소
저장