CryptoSys API Library Manual


Updates an RNG seed file.

VBA/VB6 Syntax

Public Declare Function RNG_UpdateSeedFile Lib "diCryptoSys.dll" (ByVal strSeedFile As String, ByVal nOptions As Long) As Long

nRet = RNG_UpdateSeedFile(strSeedFile, nOptions)

C/C++ Syntax

long __stdcall RNG_UpdateSeedFile(const char *szSeedFile, long nOptions);


[in] specifying the seed file to be updated.
[in] option flags: not used in this release. Specify zero.

Returns (VBA/C)

If successful, the return value is zero; otherwise it returns a non-zero error code.

.NET Equivalent

Rng.UpdateSeedFile Method

C++ (STL) Equivalent

static int crsysapi::Rng::UpdateSeedFile (const std::string &seedFile)

Python Equivalent

static Rng.update_seedfile(seedfilename)


The seed file must be writable by the user. Use this function at periodic intervals or when exiting your application. If the file does not exist it will be created. Any existing file of the same name will be overwritten without warning.


See the example in RNG_Initialize.

See Also

RNG_Initialize RNG_MakeSeedFile

[Contents] [Index]

[PREV: RNG_TestDRBGVS...]   [Contents]   [Index]   
   [NEXT: SHA1_AddBytes...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.