Getting a unique id from a unix-like system

前端 未结 15 2452
不知归路
不知归路 2020-11-27 18:22

I want to get from any Unix-like system (if this is possible) a unique id that will be persistent every time my application runs in the same machine. If it is possible, I wa

15条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 19:06

    I don't think it's possible. The closest you can get is to create a very long random string (like MS do with GUIDs) and store it somewhere on your system.

提交回复
热议问题