News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

MASM32 Lib Help File: nrandom

Started by Ossa, May 27, 2006, 07:30:54 PM

Previous topic - Next topic

Ossa

Following a thread/post in the workshop, is it possible for one of two things to happen regarding the documentation/code on the nrandom function:

1) Change the documentation to say that you must call nseed to set the seed. It currently says:

QuoteThe seed for the random algorithm is set as a variable of GLOBAL scope in a seperate procedure atached to the library module. The variable is nrandom_seed and this variable should be set with a DWORD size number prior to the use of this algorithm.

This is wrong - the variable is not global - and it doesn't state the name of the "seperate procedure" (nseed).

2) or... make the variable (nrandom_seed) have global scope using EXTERNDEF or something and then add a similar line to masm32.inc... you can also optionally remove the nseed function in this case.

Ossa
Website (very old): ossa.the-wot.co.uk