From: Oliver Kurth Date: Mon, 4 May 2020 18:54:12 +0000 (-0700) Subject: Clean up a few things in the random.h header file. X-Git-Tag: stable-11.2.0~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a981dcaa625a982e62e93ab63648dc02ac31595;p=thirdparty%2Fopen-vm-tools.git Clean up a few things in the random.h header file. --- diff --git a/open-vm-tools/lib/include/random.h b/open-vm-tools/lib/include/random.h index 5b02cd7c9..b96c1a6e9 100644 --- a/open-vm-tools/lib/include/random.h +++ b/open-vm-tools/lib/include/random.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 1998-2017,2019 VMware, Inc. All rights reserved. + * Copyright (C) 1998-2020 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -46,7 +46,7 @@ Bool Random_Crypto(size_t size, void *buffer); /* - * High quality - research grade - random number generator. + * Research grade Mersenne Twister random number generator. * * Period: 2^800 * Speed: ~23 cycles @@ -101,8 +101,12 @@ typedef struct { } RandomFastContext; uint32 Random_FastStream(RandomFastContext *rfc); + uint64 Random_FastStream64(RandomFastContext *rfc); -void Random_FastStreamSeed(RandomFastContext *rfc, uint64 seed, uint64 seq); + +void Random_FastStreamSeed(RandomFastContext *rfc, + uint64 seed, + uint64 seq); /* * Simple multiplicative congruential RNG.