Skip to content

Commit

Permalink
Added ResetRandomSeed to Magick.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Sep 2, 2024
1 parent d82b866 commit 3ab63fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Magick.Native/Magick.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ MAGICK_NATIVE_EXPORT void Magick_DisposeFonts(TypeInfo **list)
RelinquishMagickMemory((void *) list);
}

MAGICK_NATIVE_EXPORT void Magick_ResetRandomSeed()
{
SetRandomSecretKey(ULONG_MAX);
}

MAGICK_NATIVE_EXPORT void Magick_SetDefaultFontFile(const char *fileName, ExceptionInfo **exception)
{
MAGICK_NATIVE_GET_EXCEPTION;
Expand Down
2 changes: 2 additions & 0 deletions src/Magick.Native/Magick.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ MAGICK_NATIVE_EXPORT const char *Magick_GetFontName(const TypeInfo **, const siz

MAGICK_NATIVE_EXPORT void Magick_DisposeFonts(TypeInfo **);

MAGICK_NATIVE_EXPORT void Magick_ResetRandomSeed();

MAGICK_NATIVE_EXPORT void Magick_SetDefaultFontFile(const char *, ExceptionInfo **);

MAGICK_NATIVE_EXPORT void Magick_SetLogDelegate(const MagickLogMethod);
Expand Down

0 comments on commit 3ab63fe

Please sign in to comment.