Welcome to mirror list, hosted at ThFree Co, Russian Federation.

RandomNumberGenerator.cs « System.Security.Cryptography « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f6bc1c51608fb215a652521a8b622fbf79787587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// System.Security.Cryptography.RandomNumberGenerator
//
// author:
//   Duco Fijma (duco@lorentz.xs4all.nl)
//
//   (C) 2002 Duco Fijma
//

using System.Globalization;

namespace System.Security.Cryptography {
	
public abstract class RandomNumberGenerator  {
	
	public RandomNumberGenerator () {
	}

	public static RandomNumberGenerator Create () {
		// create the default random number generator
		return Create ("System.Security.Cryptography.RandomNumberGenerator");
	}

	[MonoTODO]
	public static RandomNumberGenerator Create (string rngName) {
		return null;
		// return (RandomNumberGenerator) (CryptoConfig.CreateFromName (rngName));
	}

	public abstract void GetBytes (byte[] data);

	public abstract void GetNonZeroBytes (byte[] data);
	
}

}