diff options
author | Howard Su <howard0su@gmail.com> | 2023-06-29 21:15:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 06:15:15 -0700 |
commit | b8c8dda75fdf5fdea49c80af36818e7c30fe0ddf (patch) | |
tree | 85107b89339fe14e31b33703d6dcf440664695ca /examples/common.h | |
parent | 96a712ca1b7f427e3bd7ffc0c70b2105cfc7fbf1 (diff) |
Use unsigned for random seed (#2006)
* Use unsigned for random seed. Keep -1 as the value to use a time based seed.
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'examples/common.h')
-rw-r--r-- | examples/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/common.h b/examples/common.h index 9d213d6..66e5672 100644 --- a/examples/common.h +++ b/examples/common.h @@ -22,7 +22,7 @@ int32_t get_num_physical_cores(); struct gpt_params { - int32_t seed = -1; // RNG seed + uint32_t seed = -1; // RNG seed int32_t n_threads = get_num_physical_cores(); int32_t n_predict = -1; // new tokens to predict int32_t n_ctx = 512; // context size |