Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
a1a64bb7
Commit
a1a64bb7
authored
Jul 11, 2005
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further tweaking of Win32-specific random code. Marko Kreen
parent
e82f7e9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
contrib/pgcrypto/random.c
contrib/pgcrypto/random.c
+2
-3
No files found.
contrib/pgcrypto/random.c
View file @
a1a64bb7
...
...
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.1
3 2005/07/11 17:00:03
tgl Exp $
* $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.1
4 2005/07/11 19:06:46
tgl Exp $
*/
#include "postgres.h"
...
...
@@ -104,7 +104,6 @@ try_dev_random(uint8 *dst)
#define TRY_WIN32_GENRAND
#define TRY_WIN32_PERFC
#define _WIN32_WINNT 0x0400
#include <windows.h>
#include <wincrypt.h>
...
...
@@ -128,7 +127,7 @@ static uint8 * try_win32_genrand(uint8 *dst)
res
=
CryptGenRandom
(
h
,
RND_BYTES
,
dst
);
if
(
res
==
TRUE
)
dst
+=
len
;
dst
+=
RND_BYTES
;
CryptReleaseContext
(
h
,
0
);
return
dst
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment