Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Random

Re: Random

From: Pete Finnigan <plsql_at_petefinnigan.com>
Date: Fri, 7 May 2004 11:23:47 +0100
Message-ID: <RRv4O7AzO2mARxBB@peterfinnigan.demon.co.uk>

>is there a function, in Oracle, to generate pseudo-random numbers (like RND
>or RANDOM) ?

Hi,

You can use dbms_random to generate random numbers but dbms_random can generated numbers that are not random enough, i.e. pseudo random numbers. The seed needs to be large enough. This package calls the internal number generator in the Oracle kernel. If you want better random numbers then use desgetkey and des3getkey in the package dbms_obfuscation_toolkit. I believe these are FIPS140 standard.

hth

kind regards

Pete

-- 
Pete Finnigan
email:pete_at_petefinnigan.com
Web site: http://www.petefinnigan.com - Oracle security audit specialists
Book:Oracle security step-by-step Guide - see http://store.sans.org for details.
Received on Fri May 07 2004 - 05:23:47 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US