c++ - Generating a unique id of std::string -


मैं 32 बिट अनुप्रयोग में कोई भी सीमित std :: string size unique id (i.e आकार 6) उत्पन्न करना चाहता हूं। ऐसा करने का सबसे अच्छा और तेज़ तरीका क्या होगा?

स्ट्रिंग्स की हैशिंग की तलाश करें, उदा। ।

लेकिन आप कभी नहीं अद्वितीय हैश प्राप्त करेंगे, क्योंकि तार आपके आकार 6 से अधिक लंबा हो सकते हैं, और शो में कम से कम हो सकता है कि चाहिए टकराने जैसा परिणाम है।


Comments

Popular posts from this blog

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -