The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: statis on June 15, 2009, 09:24:50 PM

Title: need .help to randlib.inc
Post by: statis on June 15, 2009, 09:24:50 PM
Hello,

I don't find .help to randlib...

Many library component's have definitions in .help and why not randlib ?

randlib is lost eden ?

Title: Re: need .help to randlib.inc
Post by: dedndave on June 15, 2009, 09:49:14 PM
i was just looking at the site of the author the other day
let me see if i can find it...

i think it was Agner Fog...

http://www.agner.org/random/?e=0#0
Title: Re: need .help to randlib.inc
Post by: statis on June 15, 2009, 10:13:02 PM
Quote from: dedndave on June 15, 2009, 09:49:14 PM
i was just looking at the site of the author the other day
let me see if i can find it...

i think it was Agner Fog...

http://www.agner.org/random/?e=0#0

Tanks dedndave  :bg

It's possible to find .hlp in masm package but it's very small collection...

I have .hlp personal collection but i don't find on the www the randlib and functions :
A_SHAFinalNS PROTO :DWORD,:DWORD
A_SHAInit PROTO :DWORD
A_SHAUpdateNS PROTO :DWORD,:DWORD,:DWORD
AccessSeed PROTO :DWORD,:DWORD
DeInitRand PROTO :DWORD,:DWORD
DestroyCircularHash PROTO :DWORD
GatherCPUSpecificCounters PROTO :DWORD,:DWORD
GatherCPUSpecificCountersPrivileged PROTO :DWORD,:DWORD
GatherRandomKey PROTO :DWORD,:DWORD,:DWORD,:DWORD
GatherRandomKeyFastUserMode PROTO :DWORD,:DWORD,:DWORD,:DWORD
GenRandom PROTO :DWORD,:DWORD,:DWORD
GetCircularHashValue PROTO :DWORD,:DWORD,:DWORD
InitCircularHash PROTO :DWORD,:DWORD,:DWORD,:DWORD
InitRand PROTO :DWORD,:DWORD
IsRNGWinNT PROTO
MD4Final PROTO :DWORD
MD4Init PROTO :DWORD
MD4Update PROTO :DWORD,:DWORD,:DWORD
NewGenRandom PROTO :DWORD,:DWORD,:DWORD,:DWORD
NewGenRandomEx PROTO :DWORD,:DWORD,:DWORD
RandomFillBuffer PROTO :DWORD,:DWORD
ReadMMXCounters PROTO :DWORD,:DWORD,:DWORD
ReadP5Counters PROTO :DWORD,:DWORD,:DWORD
ReadSeed PROTO :DWORD,:DWORD
UpdateCircularHash PROTO :DWORD,:DWORD,:DWORD
VeryLargeHashUpdate PROTO :DWORD,:DWORD,:DWORD
WriteSeed PROTO :DWORD,:DWORD
rc4 PROTO :DWORD,:DWORD,:DWORD
rc4_key PROTO :DWORD,:DWORD,:DWORD

Why this lib is include in masm if we don't find definitions ?
Title: Re: need .help to randlib.inc
Post by: dedndave on June 15, 2009, 10:17:19 PM
what i usually do is search the masm32 folder for files containing randlib
you may find some examples

EDIT
i find
masm32\examples\exampl10\shuflarr\sa.asm
and
masm32\m32lib\nrand.asm

i am sure there is more to it
Title: Re: need .help to randlib.inc
Post by: dedndave on June 15, 2009, 10:31:19 PM
in searching the forum, i find several posts on random numbers, but few on the library

the Agner Fog webpage and John Walker's ENT program are what i come up with
here is John's site...

http://www.fourmilab.ch/
Title: Re: need .help to randlib.inc
Post by: ramguru on June 15, 2009, 10:35:24 PM
only masm32.lib & fpu.lib are made specially for masm32 project .. (so only they are properly documented)
rest 99% came who knows from where: 3-rd party / M$.
The list of libraries (in masm32) is decided, I guess, by Windows PSDK lib list.
I even couldn't find randlib.dll on my hardrive (so maybe it's static..) ..
makes me wonder how the hell inc2l generates those libs without dll
Title: Re: need .help to randlib.inc
Post by: dedndave on June 15, 2009, 10:51:17 PM
well - they are not part of msvcrt
but they may still from a C lib, i suppose
Title: Re: need .help to randlib.inc
Post by: statis on June 16, 2009, 06:16:46 PM
Quote from: dedndave on June 15, 2009, 10:17:19 PM

masm32\examples\exampl10\shuflarr\sa.asm


I don't find this example in V10 Masm, but no problem ;)

Quote from: ramguru on June 15, 2009, 10:35:24 PM
only masm32.lib & fpu.lib are made specially for masm32 project .. (so only they are properly documented)
rest 99% came who knows from where: 3-rd party / M$.
The list of libraries (in masm32) is decided, I guess, by Windows PSDK lib list.
I even couldn't find randlib.dll on my hardrive (so maybe it's static..) ..
makes me wonder how the hell inc2l generates those libs without dll

Tanks ramguru,

I anderstand, no DLL in windows system = forget lib/inc in masm ;)
Title: Re: need .help to randlib.inc
Post by: MichaelW on June 16, 2009, 07:42:00 PM
Randlib.lib appears to be an import library for randlib.dll. Searching the web I can find multiple references for "randlib", but I cannot find any that are even remotely related to the include file and import library.
Title: Re: need .help to randlib.inc
Post by: jj2007 on June 16, 2009, 08:12:34 PM
Could be part of an older version of advapi32... see e.g. OpenRCE (https://www.openrce.org/reference_library/win32_call_chains/XPSP2/ADVAPI32/InitRand)
Title: Re: need .help to randlib.inc
Post by: dedndave on June 16, 2009, 08:32:29 PM
it isn't a very large lib, of course
could dis-assemble it and see whose code it resembles - lol
Title: Re: need .help to randlib.inc
Post by: jj2007 on June 16, 2009, 09:19:25 PM
SQL Server 2000?? See attachment...

[attachment deleted by admin]
Title: Re: need .help to randlib.inc
Post by: dedndave on June 17, 2009, 01:17:00 AM
well - there is randlib.lib, randlibk.lib (the two files are similar internally)
both randlib.inc and randlibk.inc say "copyright MASM32 1998 - 2005"
Hutch must have an idea where these libraries came from

searching the web, the only references i found of randlib.lib and randlibk.lib
implied that the randlibk might be a 64-bit version (?) and they are AMD lib's

i hate to get Hutch mad - he will say "RTFM" - and we don't know which FM to R - lol
Title: Re: need .help to randlib.inc
Post by: donkey on June 18, 2009, 04:06:25 AM
Perhaps...

http://dir.filewatcher.com/d/NetBSD/distfiles/randlib-1.3/randlib.c-1.3.tar.gz.42044.html

though if it is the randlib library written by Barry Brown I can't see Hutch adding a copyright notice to the include, he has a policy of respecting others copyrights just as I do for the headers project.