Browse Source

consistency adjustment in OSRandom

Ugochukwu Mmaduekwe 7 years ago
parent
commit
8ae3316c44
1 changed files with 3 additions and 3 deletions
  1. 3 3
      CryptoLib/src/Utils/Randoms/ClpOSRandom.pas

+ 3 - 3
CryptoLib/src/Utils/Randoms/ClpOSRandom.pas

@@ -122,15 +122,15 @@ function SecRandomCopyBytes(rnd: SecRandomRef; count: LongWord; bytes: PByte)
 {$IFDEF IOSFPC}
 
 type
-
+  // similar to a TOpaqueData already defined in newer FPC but not available in 3.0.4
   __SecRandom = record end;
-
+ // similar to an OpaquePointer already defined in newer FPC but not available in 3.0.4
   SecRandomRef = ^__SecRandom;
 
 const
   { * This is a synonym for NULL, if you'd rather use a named constant.   This
     refers to a cryptographically secure random number generator.  * }
-  kSecRandomDefault: Pointer = Nil;
+  kSecRandomDefault: SecRandomRef = Nil;
 
 function SecRandomCopyBytes(rnd: SecRandomRef; count: LongWord; bytes: PByte)
   : Integer; cdecl; external;