# axutil_rand.h

Go to the documentation of this file.

    00001
    00002 /*
    00003  * Copyright 2004,2005 The Apache Software Foundation.
    00004  *
    00005  * Licensed under the Apache License, Version 2.0 (the "License");
    00006  * you may not use this file except in compliance with the License.
    00007  * You may obtain a copy of the License at
    00008  *
    00009  *      http://www.apache.org/licenses/LICENSE-2.0
    00010  *
    00011  * Unless required by applicable law or agreed to in writing, software
    00012  * distributed under the License is distributed on an "AS IS" BASIS,
    00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00014  * See the License for the specific language governing permissions and
    00015  * limitations under the License.
    00016  */
    00017
    00018 #ifndef AXUTIL_RAND_H
    00019 #define AXUTIL_RAND_H
    00020
    00021 #include <axutil_error.h>
    00022 #include <axutil_env.h>
    00023 #include <axutil_date_time.h>
    00024 #include <axutil_base64_binary.h>
    00025
    00026 #ifdef __cplusplus
    00027 extern "C"
    00028 {
    00029 #endif
    00030
    00049     AXIS2_EXTERN int AXIS2_CALL
    00050     axutil_rand(
    00051         unsigned int *seedp);
    00052
    00063     AXIS2_EXTERN int AXIS2_CALL
    00064     axutil_rand_with_range(
    00065         unsigned int *seedp,
    00066         int start,
    00067         int end);
    00068
    00072     AXIS2_EXTERN unsigned int AXIS2_CALL
    00073
    00074     axutil_rand_get_seed_value_based_on_time(
    00075         const axutil_env_t * env);
    00076
    00079 #ifdef __cplusplus
    00080 }
    00081 #endif
    00082
    00083 #endif                          /* AXIS2_RAND_H */