用于将原始网址转换成6个字符长度的短网址。
toml
[dependencies]
shorturl-core = { git = "https://github.com/r7n/shorturl-core.git" }
```rust use shorturlcore::shorturl;
let url:String = "r7n.cc".tostring(); let shortedurl:String = shorturl(url); # 3TrFk7 println!("{}", shortedurl); ```
```rust use shorturlcore::shorturlwithseed;
let url:String = "r7n.cc".tostring(); let shortedurl:String = shorturlwithseed(url, 1u32); # 3KC4r5 println!("{}", shortedurl); ```