srand48() & lrand48() are standard c/c++ functions to produce pseudo random data. but for some reasons, my 32 bits machine and the compiler only support srand() & lrand(); and I need to create srand48() and lrand48() in c (with basic stdlib.h) or assembly language. could anyone please help me out: how to create those two functions. thanks.
They are NOT standard C functions!
This means the creator of the compiler is not obligated to implement these
Microsoft didn't implement them in visual C++!
What operating system are you using?
I find man pages about them on unix systems (not sure about linux).
Perhaps you could consult the linux kernel sources or gcc sources for implementation
or search on the net
msim,
You can simply use any pseudo-random number generator [PRNG] to implement functions like these with any size of generated numbers. Look on Internet for keywords "pseudo random generator".
For example, here is the first site I found with C sources: https://www.agner.org/random/