generate serial number for our own application

Status
Not open for further replies.

enigmacore

Newbie level 4
Joined
Aug 12, 2005
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,368
hi, how to generate serial numbers for our own application? i mean application such as adobe photoshop or macromedia flash need serial number to install their application. so i would like to know how to generate serial numbers in order if somebody wants to install my application he must have a serial number from us. and every single application has its own serial number. thanks before
 

A fast and simple way is to use a pseudorandom generator with a specific starting seed.
 

What's a pseudorandom generator with a specific starting seed? where can i find the source or information about it?
 

A pseudorandom generator is a generator for fake random sequences. It's fake in the sense that as long as you use the same generator and the same starting seed (ie same initial state of generator), you can reproduce the sequence, so it's not truely random. Also, the sequence may repeat, but generally after a high number of repeats, depending on the code size.

There are many ways to implement a pseudorandom generator. You can google around for them.
 

The easiest way of doing this is using disk serial number which is unique.

you can get it using MSDN function "GetVolumeInformation".


Cheers
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…