News:

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

need .help to randlib.inc

Started by statis, June 15, 2009, 09:24:50 PM

Previous topic - Next topic

statis

Hello,

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

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

randlib is lost eden ?


dedndave

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

statis

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 ?

dedndave

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

dedndave

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/

ramguru

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

dedndave

well - they are not part of msvcrt
but they may still from a C lib, i suppose

statis

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 ;)

MichaelW

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.
eschew obfuscation

jj2007

Could be part of an older version of advapi32... see e.g. OpenRCE

dedndave

it isn't a very large lib, of course
could dis-assemble it and see whose code it resembles - lol

jj2007

SQL Server 2000?? See attachment...

[attachment deleted by admin]

dedndave

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

donkey

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.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable